Options
All
  • Public
  • Public/Protected
  • All
Menu

An interface describing a menu item.

Hierarchy

Index

Properties

Optional args

args: PartialJSONObject

The arguments for the command.

The default value is an empty object.

Optional command

command: string

The command to execute when the item is triggered.

The default value is an empty string.

Optional disabled

disabled: boolean

Whether a menu item is disabled. false by default.

Notes

This allows an user to suppress menu items.

Optional rank

rank: number

The rank order of the menu item among its siblings.

Optional submenu

submenu: IMenu

The submenu for a 'submenu' type item.

The default value is null.

Optional type

type: ItemType

The type of the menu item.

The default value is 'command'.

Generated using TypeDoc