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
labelThe text to show on the menu item. Should be left undefined for type: 'separator'
Optional
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