Skip to main content

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
menuCss?: 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?: Record<string, any>;
}

Toolbar Properties

cssOptional. Controls the CSS class for the top container of the toolbar
itemsOptional. Defines an array of items that will be displayed in the toolbar
menuCssOptional. Controls the CSS class applied to the top container of the popup menu
overflowOptional. Controls how the toolbar handles items that do not fit on the screen
valuesOptional. Allows a user to bind values for controls inside the toolbar

Toolbar Events

changeFires when the value of a control within the toolbar changes
clickFires when a control within the toolbar is clicked

Helpers

  • Visit the Features Guide to learn more about the widget's functionality.
  • Explore the samples to visualize the available features.