An interface describing a toolbar item.

interface IToolbarItem {
    args?: PartialJSONObject;
    command?: string;
    disabled?: boolean;
    icon?: string;
    label?: string;
    name: string;
    rank?: number;
    type?: "spacer" | "command";
}

Hierarchy

  • PartialJSONObject
    • IToolbarItem

    Properties

    args?: PartialJSONObject

    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.

    disabled?: boolean

    Whether the toolbar item is ignored (i.e. not created). false by default.

    Notes

    This allows an user to suppress toolbar items.

    icon?: string

    Item icon id

    Note

    The id will be looked for in the LabIcon registry. The command icon will be overridden by this label if defined.

    label?: string

    Item label

    Note

    The command label will be overridden by this label if defined.

    name: string

    Unique toolbar item name

    rank?: number

    The rank order of the toolbar item among its siblings.

    type?: "spacer" | "command"

    The type of the toolbar item.