blockly > MenuOption

プルダウン メニューの個々のオプション。メニュー分割アイテムの場合は文字列リテラル separator、通常のアクション メニュー項目の場合は配列です。後者の場合、最初の要素は人間が判読できる値(テキスト、ImageProperties オブジェクト、HTML 要素)、2 番目の要素は言語に依存しない値です。

署名:

export type MenuOption = [string | ImageProperties | HTMLElement, string] | 'separator';

参照: ImageProperties