Interface SubMenuOptions

Additional options when creating a new submenu.

interface SubMenuOptions {
    icon?: string;
    iconClass?: string;
    label?: string;
    order?: string;
    role?: CompoundMenuNodeRole;
    when?: string;
}

Hierarchy

Properties

icon?: string

Icon classes for the menu node. If present, these will produce an icon to the left of the label in browser-style menus.

iconClass?: string

The class to use for the submenu icon.

Deprecated

use icon instead;

label?: string

Optional label. Will be rendered as text of the menu item.

order?: string

Menu entries are sorted in ascending order based on their order strings. If omitted the determined label will be used instead.

How the node and its children should be rendered. See CompoundMenuNodeRole.

when?: string

Condition under which the menu node should be rendered. See https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts