Skip to content

Interface: MenuItem ​

One entry in a menu.

Properties ​

PropertyTypeDescription
command() => CommandThe command the item runs; also decides whether it is enabled (editor.can()).
idstringUnique within the menu.
isActive?(editor) => booleanMakes the item a choice (menuitemradio); the checked item is the first whose isActive returns true. Leave it out for actions (menuitem), such as "Add row".
labelstringText shown for the item; also used for type-ahead.