Theia API Documentation v1.65.0
    Preparing search index...

    An object which represents a menu item.

    Item objects are created automatically by a menu.

    interface IItem {
        args: ReadonlyJSONObject;
        caption: string;
        className: string;
        command: string;
        dataset: Dataset;
        icon: undefined | IRenderer;
        iconClass: string;
        iconLabel: string;
        isEnabled: boolean;
        isToggled: boolean;
        isVisible: boolean;
        keyBinding: null | IKeyBinding;
        label: string;
        mnemonic: number;
        submenu: null | Menu;
        type: ItemType;
    }
    Index

    Properties

    args: ReadonlyJSONObject

    The arguments for the command.

    caption: string

    The display caption for the menu item.

    className: string

    The extra class name for the menu item.

    command: string

    The command to execute when the item is triggered.

    dataset: Dataset

    The dataset for the menu item.

    icon: undefined | IRenderer

    The icon renderer for the menu item.

    iconClass: string

    The icon class for the menu item.

    iconLabel: string

    The icon label for the menu item.

    isEnabled: boolean

    Whether the menu item is enabled.

    isToggled: boolean

    Whether the menu item is toggled.

    isVisible: boolean

    Whether the menu item is visible.

    keyBinding: null | IKeyBinding

    The key binding for the menu item.

    label: string

    The display label for the menu item.

    mnemonic: number

    The mnemonic index for the menu item.

    submenu: null | Menu

    The submenu for a 'submenu' type item.

    type: ItemType

    The type of the menu item.