調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >入力 >入力 >appendField
入力のフィールド行の末尾に、フィールド(または文字列のラベル)、すべての接頭辞フィールドと接尾辞フィールドを追加します。
署名:
appendField<T>(field: string | Field<T>, opt_name?: string): Input;
パラメータ
パラメータ |
型 |
説明 |
フィールド |
文字列 |フィールド<T> |
フィールドとして追加するもの。 |
opt_name |
文字列 |
(省略可)言語に依存しない識別子。このフィールドを再度検索する場合に使用できます。ホストブロックに対して一意である必要があります。 |
戻り値:
入力
追記する入力(チェーン接続を可能にするため)。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-09-12 UTC。
[null,null,["最終更新日 2024-09-12 UTC。"],[[["The `appendField` method adds a field (or label) to the end of a block input's field row."],["It accepts a field object or a string for the field content, and an optional name for identifying the field."],["The method returns the input object, allowing for chaining of multiple `appendField` calls."]]],[]]