Options
All
  • Public
  • Public/Protected
  • All
Menu

MenuItem

Index

Properties

Optional accelerator

accelerator: string

Accelerator associated with the menu item

Optional commandArgs

commandArgs: any[]

Arguments that should be passed to the command. They will be as rest parameters.

Optional commandName

commandName: string

Command that should be associated with the menu item. All menu item should have a command associated with them unless they are a sub-menu.

Optional label

label: string

Menu item label. If not specified, the command label will be used instead.

Optional submenu

submenu: MenuItem[]

Menu items that should appear below this menu item. Allows creating a menu tree.

Optional type

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

Set to "separator" to create a divider line