透過集合功能整理內容
你可以依據偏好儲存及分類內容。
blockly > MenuOption
下拉式選單中的個別選項。可以是選單分隔符項目的字串常值 separator
,也可以是一般動作選單項目的陣列。在後一種情況下,第一個元素是人類可讀的值 (文字、ImageProperties 物件或 HTML 元素),第二個元素則是語言中立的值。
Signature:
export type MenuOption = [string | ImageProperties | HTMLElement, string] | 'separator';
參考資料: ImageProperties
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["The `MenuOption` type defines a single option within a dropdown menu. It's structured as a tuple, with two elements. The first element is the human-readable representation of the option, which can be either a string or an image. The second element is a language-neutral string value associated with that option. This type is used within the Blockly system.\n"],null,[]]