Toolbar API
Initialization
interface ToolbarConfig {
// Array of items to be displayed in the toolbar
items?: Array<any>;
// CSS class for the top container
css?: string;
// CSS class for the top container of the popup menu
cssMenu?: string;
// Event handler for item click
onclick?: (event: any) => void;
// Event handler for value change
onchange?: (event: any) => void;
// Defines the behavior of the toolbar on overflow
overflow?: "collapse" | "wrap" | "menu";
// Initial values for controls inside the toolbar
values?: { [key: string]: any };
}
Properties
items
- array of items to be displayed in the toolbarcss
- css class for the top containercssMenu
- css class for the top container of the popup menuoverflow
- defines the behavior of the toolbar on overflowvalues
- initial values for controls inside the toolbar
Events
onclick
- triggered when an item in the toolbar is clickedonchange
- triggered when the value of a control inside the toolbar changes
Helpers
registerToolbarItem
- register custom components as elements in the toolbar
Related resources
- Visit the Features Guide to learn more about the widget's functionality.
- Explore the samples to visualize the available features.