Skip to main content

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:85


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:77


icon?

optional icon: string

Defined in

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


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:68


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

If false, the menu item will be entirely hidden.

Defined in

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