ToolbarItemUtilities Class
Helper class to create Abstract StatusBar Item definitions.
Methods
Name | Description | |
---|---|---|
constructor(): ToolbarItemUtilities | ||
createActionButton(id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, execute: () => void, overrides?: Partial<ActionButton>): ActionButton Static | Creates an Action Button | |
createGroupButton(id: string, itemPriority: number, icon: string | ConditionalStringValue, label: string | ConditionalStringValue, items: undefined, overrides?: Partial<GroupButton>): GroupButton Static | Creates a Group button. | |
isActionButton(item: CommonToolbarItem): item is ActionButton Static | ActionButton type guard. | |
isCustomDefinition(item: CommonToolbarItem): item is CustomButtonDefinition Static | CustomButtonDefinition type guard. | |
isGroupButton(item: CommonToolbarItem): item is GroupButton Static | GroupButton type guard. |
Defined in
Last Updated: 30 November, 2023