目录

MenuItemBaseOptions

Options for constructing a menu item.

Properties 

id 

readonly id: string;

The ID of the menu item.

label 

readonly label?: string;

The label of the menu item.

enabled 

readonly enabled?: boolean;

Whether the menu item is enabled.

shortcut 

readonly shortcut?: Shortcut;

The shortcut of the menu item. The shortcut is a string in the format “CommandOrControl+Shift+F”. It will be displayed next to the menu item label.

action 

readonly action?: (item: T) => void;

The action to perform when the menu item is clicked.