An object which represents an item in a command palette.

Notes

Item objects are created automatically by a command palette.

interface IItem {
    args: ReadonlyJSONObject;
    caption: string;
    category: string;
    className: string;
    command: string;
    dataset: CommandRegistry.Dataset;
    icon: undefined | VirtualElement.IRenderer;
    iconClass: string;
    iconLabel: string;
    isEnabled: boolean;
    isToggleable: boolean;
    isToggled: boolean;
    isVisible: boolean;
    keyBinding: null | IKeyBinding;
    label: string;
    rank: number;
}

Properties

The arguments for the command.

caption: string

The display caption for the command item.

category: string

The category for the command item.

className: string

The extra class name for the command item.

command: string

The command to execute when the item is triggered.

The dataset for the command item.

icon: undefined | VirtualElement.IRenderer

The icon renderer for the command item.

iconClass: string

The icon class for the command item.

iconLabel: string

The icon label for the command item.

isEnabled: boolean

Whether the command item is enabled.

isToggleable: boolean

Whether the command item is toggleable.

isToggled: boolean

Whether the command item is toggled.

isVisible: boolean

Whether the command item is visible.

keyBinding: null | IKeyBinding

The key binding for the command item.

label: string

The display label for the command item.

rank: number

The rank for the command item.