Interface: MenuItem
Properties
checked?
optional
checked:boolean
Should only be specified for checkbox
or radio
type menu items.
Defined in
packages/extension-api/src/extension-api.d.ts:79
enabled?
optional
enabled:boolean
If false, the menu item will be greyed out and unclickable.
Defined in
packages/extension-api/src/extension-api.d.ts:71
icon?
optional
icon:string
Defined in
packages/extension-api/src/extension-api.d.ts:67
id
id:
string
Unique within a single menu. Should be same as commandId for handler
Defined in
packages/extension-api/src/extension-api.d.ts:62
label?
optional
label:string
Defined in
packages/extension-api/src/extension-api.d.ts:65
submenu?
optional
submenu:MenuItem
[]
Defined in
packages/extension-api/src/extension-api.d.ts:81
type?
optional
type:"normal"
|"separator"
|"submenu"
|"checkbox"
|"radio"
Defined in
packages/extension-api/src/extension-api.d.ts:64
visible?
optional
visible:boolean
If false, the menu item will be entirely hidden.