Skip to main content

Interface: MenuItem

Properties

checked?

optional checked: boolean

Should only be specified for checkbox or radio type menu items.

Source

packages/extension-api/src/extension-api.d.ts:60


enabled?

optional enabled: boolean

If false, the menu item will be greyed out and unclickable.

Source

packages/extension-api/src/extension-api.d.ts:52


icon?

optional icon: string

Source

packages/extension-api/src/extension-api.d.ts:48


id

id: string

Unique within a single menu. Should be same as commandId for handler

Source

packages/extension-api/src/extension-api.d.ts:43


label?

optional label: string

Source

packages/extension-api/src/extension-api.d.ts:46


optional submenu: MenuItem[]

Source

packages/extension-api/src/extension-api.d.ts:62


type?

optional type: "normal" | "separator" | "submenu" | "checkbox" | "radio"

Source

packages/extension-api/src/extension-api.d.ts:45


visible?

optional visible: boolean

If false, the menu item will be entirely hidden.

Source

packages/extension-api/src/extension-api.d.ts:56