blockly > FieldDropdown > getText_

FieldDropdown.getText_() メソッド

フィールドのテキスト表現をオーバーライドするには、getText_ デベロッパー フックを使用します。選択したオプション テキストを取得します。選択したオプションが画像の場合は、画像の代替テキストが返されます。

署名:

protected getText_(): string | null;

戻り値:

文字列 | null

選択したオプション テキスト。