ToolbarHelper Class

Deprecated  in 4.15.0. Use ToolbarItemUtilities instead.

Helper functions for defining a Toolbar items used in Toolbar, ToolbarComposer and UiItemsProvider.

Methods

Name Description
constructor(): ToolbarHelper    
constructChildToolbarItems(itemDefs: AnyItemDef[]): ToolbarActionItem | ToolbarGroupItem[] Static Construct ToolbarActionItem and ToolbarGroupItem definitions given an array of ItemDefs. Deprecated  
createCustomDefinitionToolbarItem(itemPriority: number, itemDef: CustomItemDef, overrides?: Partial<CustomButtonDefinition & { badgeKind?: BadgeKind }>): ToolbarCustomItem Static Construct ToolbarCustomItem definitions given a CustomItemDef. Deprecated  
createToolbarItemFromItemDef(itemPriority: number, itemDef: AnyItemDef, overrides?: Partial<CommonToolbarItemWithBadgeKind>): ToolbarItem Static Helper method to creates a generic toolbar item entry. Deprecated  
createToolbarItemsFromItemDefs(itemDefs: AnyItemDef[], startingItemPriority: number10, overrides?: Partial<CommonToolbarItemWithBadgeKind>): ToolbarItem[] Static Helper method to creates a generic toolbar item entry list. Deprecated  
getIconReactNode(item: ActionButton | GroupButton): React.ReactNode Static   Deprecated  

Defined in

Last Updated: 20 November, 2024