Interface RenderedMenuNodeInternal

Metadata for the visual presentation of a node. For most uses cases, refer to MenuNode, CommandMenuNode, or CompoundMenuNode

interface RenderedMenuNode {
    icon?: string;
    id: string;
    label: string;
    onDidChange?: Event<void>;
    sortString: string;
    isVisible<T>(effectiveMenuPath, contextMatcher, context, ...args): boolean;
}

Hierarchy (view full)

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.

id: string

technical identifier.

label: string

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

onDidChange?: Event<void>
sortString: string

Menu nodes are sorted in ascending order based on their sortString.

Methods