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: ReadonlyArray<ActionButton | GroupButton>, 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: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.