Optional
checkedShould only be specified for checkbox
type menu items.
Optional
dataOptional
enabledIf false, the menu item will be greyed out and unclickable.
Optional
iconImage Data URI with image dimensions inferred from the encoded string
Optional
labelOptional
roleOptional
submenuShould be specified for submenu
type menu items. If submenu
is specified,
the type: 'submenu'
can be omitted.
Optional
typeCan be normal
, separator
, submenu
, or checkbox
.
Defaults to 'normal' unless a 'submenu' key exists
Optional
visibleIf false, the menu item will be entirely hidden.
Configuration of an option in the save button context menu