ToolbarHelper Class

Helper functions for defining an ToolbarComposer.

Methods

Name Description
constructor(): ToolbarHelper    
constructChildToolbarItems(itemDefs: AnyItemDef[]): ActionButton | GroupButton[] Static Construct ActionButton and GroupButton definitions given an array to ItemDefs.  
createCustomDefinitionToolbarItem(itemPriority: number, itemDef: CustomItemDef, overrides?: Partial<CustomButtonDefinition>): CustomToolbarItem Static Construct CustomToolbarItem definitions given a CustomItemDef.  
createNodeForToolbarItem(item: CommonToolbarItem, onItemExecuted?: OnItemExecutedFunc): ReactNode Static    
createToolbarItemFromItemDef(itemPriority: number, itemDef: AnyItemDef, overrides?: Partial<ToolbarItem>): CommonToolbarItem Static Helper method to creates a generic toolbar item entry  
createToolbarItemsFromItemDefs(itemDefs: AnyItemDef[], startingItemPriority: number = 10, overrides?: Partial<ToolbarItem>): CommonToolbarItem[] Static    
getIconReactNode(item: ActionButton | GroupButton): ReactNode Static    

Defined in

Last Updated: 30 November, 2023