OptionalcallbackLegacy alias for doAction.
OptionaldoAction invoked when the item is activated.
OptionaldoOptional action invoked when the pointer enters the item.
OptionalgetResolves whether the item is enabled for the current context.
Defaults to true.
OptionalgetResolves whether the item is shown for the current context.
Defaults to true.
OptionalgetDynamic item title resolver.
OptionaliconOptional icon for this item. Either a static SVG markup
string or a context-aware resolver returning one. The markup
is rendered via innerHTML into the menu's icon column —
stroke / fill colours that use currentColor will pick up
the menu's icon-column colour automatically.
Items without an icon render normally; if at least one item in a menu has an icon, every item in that menu reserves the icon-column space so labels stay aligned.
OptionalitemsNested submenu item groups.
Each inner array represents a visual group.
OptionaltitleStatic item title.
Ignored when getTitle is provided.
Configuration for a single context-menu item.