Interface ReactTabBarToolbarAction

Tab-bar toolbar item backed by a React.ReactNode. Unlike the TabBarToolbarAction, this item is not connected to the command service.

interface ReactTabBarToolbarAction {
    command?: string;
    group?: string;
    id: string;
    menuPath?: MenuPath;
    onDidChange?: Event<void>;
    order?: string;
    priority?: number;
    when?: string;
    isVisible?(widget?): boolean;
    render(widget?): ReactNode;
}

Hierarchy (view full)

Properties

command?: string

The command to execute when the item is selected.

group?: string
id: string

The unique ID of the toolbar item.

menuPath?: MenuPath

A menu path with which this item is associated.

onDidChange?: Event<void>

When defined, the container tool-bar will be updated if this event is fired.

Note: currently, each item of the container toolbar will be re-rendered if any of the items have changed.

order?: string

Optional ordering string for placing the item within its group

priority?: number

Priority among the items. Can be negative. The smaller the number the left-most the item will be placed in the toolbar. It is 0 by default.

when?: string

Methods