Interface: MenuItem
One entry in a menu.
Properties
| Property | Type | Description |
|---|---|---|
command | () => Command | The command the item runs; also decides whether it is enabled (editor.can()). |
id | string | Unique within the menu. |
isActive? | (editor) => boolean | Makes 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". |
label | string | Text shown for the item; also used for type-ahead. |