блочный > ContextMenuRegistry > ContextMenuOption
Пункт меню, представленный в contextmenu.js.
Подпись:
interface ContextMenuOption
Характеристики
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-08 UTC.
[null,null,["Последнее обновление: 2025-01-08 UTC."],[[["`ContextMenuOption` interface defines the structure of a menu item displayed by the context menu in Blockly."],["Each menu item can have a callback function, enabled status, scope, display text (string or HTML element), and weight for ordering."],["The `callback` function is executed when the menu item is selected, receiving the scope and triggering event."],["Properties like `enabled`, `text`, and `weight` control the appearance and behavior of the menu item."]]],[]]