Skip to main content

Interface: MenuItem

Defined in: packages/extension-api/src/extension-api.d.ts:64

Properties

checked?

optional checked: boolean

Defined in: packages/extension-api/src/extension-api.d.ts:85

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


enabled?

optional enabled: boolean

Defined in: packages/extension-api/src/extension-api.d.ts:77

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


icon?

optional icon: string

Defined in: packages/extension-api/src/extension-api.d.ts:73


id

id: string

Defined in: packages/extension-api/src/extension-api.d.ts:68

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


label?

optional label: string

Defined in: packages/extension-api/src/extension-api.d.ts:71


optional submenu: MenuItem[]

Defined in: packages/extension-api/src/extension-api.d.ts:87


type?

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

Defined in: packages/extension-api/src/extension-api.d.ts:70


visible?

optional visible: boolean

Defined in: packages/extension-api/src/extension-api.d.ts:81

If false, the menu item will be entirely hidden.