Optional
argsThe arguments for the command.
The default value is an empty object.
Optional
commandThe command to execute when the item is triggered.
The default value is an empty string.
Optional
disabledOptional
rankThe rank order of the menu item among its siblings.
The CSS selector for the context menu item.
The context menu item will only be displayed in the context menu when the selector matches a node on the propagation path of the contextmenu event. This allows the menu item to be restricted to user-defined contexts.
The selector must not contain commas.
Optional
submenuThe submenu for a 'submenu'
type item.
The default value is null
.
Optional
typeThe type of the menu item.
The default value is 'command'
.
An interface describing a context menu item