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

    Interface IItem

    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: IRenderer | undefined;
        iconClass: string;
        iconLabel: string;
        isEnabled: boolean;
        isToggled: boolean;
        isVisible: boolean;
        keyBinding: IKeyBinding | null;
        label: string;
        mnemonic: number;
        submenu: Menu | null;
        type: ItemType;
    }
    Index
    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: IRenderer | undefined

    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: IKeyBinding | null

    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: Menu | null

    The submenu for a 'submenu' type item.

    type: ItemType

    The type of the menu item.