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

    An options object for creating a menu item.

    interface IItemOptions {
        args?: ReadonlyJSONObject;
        command?: string;
        submenu?: null | Menu;
        type?: ItemType;
    }

    Hierarchy (View Summary)

    Index

    Properties

    args?: ReadonlyJSONObject

    The arguments for the command.

    The default value is an empty object.

    command?: string

    The command to execute when the item is triggered.

    The default value is an empty string.

    submenu?: null | Menu

    The submenu for a 'submenu' type item.

    The default value is null.

    type?: ItemType

    The type of the menu item.

    The default value is 'command'.