Optional
checked?: booleanOptional
data?: anyData to be returned if the user selects the element. Must be serializable
Optional
enabled?: booleanIf false, the menu item will be greyed out and unclickable.
Optional
icon?: stringImage Data URI with image dimensions inferred from the encoded string
Optional
label?: stringOptional
role?: "cut" | "copy" | "paste" | "toggleDevTools" | "reload"Optional
submenu?: MenuItemTemplate[]Should be specified for submenu
type menu items. If submenu
is specified,
the type: 'submenu'
can be omitted.
Optional
type?: "normal" | "separator" | "submenu" | "checkbox"Can be normal
, separator
, submenu
, or checkbox
.
Defaults to 'normal' unless a 'submenu' key exists
Optional
visible?: booleanIf false, the menu item will be entirely hidden.
Generated using TypeDoc
Should only be specified for
checkbox
type menu items.