Skip to main content

Features

This page helps you start working with DHTMLX Toolbar and explore its functionality in depth.

How to start with DHTMLX Toolbar​

In this section you will learn how to initialize Toolbar, load data into it, and integrate it into your applications.

Initialization​

TopicDescription
Basic initializationLearn how to initialize a Toolbar

Loading data into Toolbar​

TopicDescription
Loading data into ToolbarRead how to load the initial data into Toolbar
Initialization with config.dataThe example shows how to load data into Toolbar during initialization
Initialization with data.load()The example shows how to load data from an external file
Initialization with data.parse()The example shows how to load data from a local data source
Initialization with external TreeCollectionThe example shows how to load data from an external TreeCollection

Toolbar controls​

TopicDescription
ButtonLearn how to add a Button control to the toolbar (Example)
Custom HTMLLearn how to add an item with custom HTML content to the toolbar (Example)
DatepickerLearn how to add a Datepicker control to the toolbar (Example)
Image buttonLearn how to add an ImageButton control to the toolbar (Example)
InputLearn how to add an Input control to the toolbar (Example)
MenuItemLearn how to add a MenuItem control to the toolbar
NavItemLearn how to add a NavItem control to the toolbar (Example)
Select buttonLearn how to add a SelectButton control to the toolbar (Example)
SeparatorLearn how to add a Separator control to the toolbar (Example)
SpacerLearn how to add a Spacer control to the toolbar (Example)
TitleLearn how to add a Title control to the toolbar (Example)

Integration​

TopicDescription
Backend integrationLearn how to connect DHTMLX Suite to a backend (Demo)
OptimusLearn how to use the DHTMLX Optimus framework to build DHTMLX-based apps
(the recommended framework for apps with Suite components)
React integrationLearn how to use DHTMLX Toolbar with React (Demo)
Angular integrationLearn how to use DHTMLX Toolbar with Angular (Demo)
Vue integrationLearn how to use DHTMLX Toolbar with Vue.js (Demo)

How to configure Toolbar controls​

In this section you will find examples of control configuration.

TopicDescription
Group buttonsThe example shows how to group controls
BadgesThe example shows how to add a badge with a number to a control
TooltipsThe example shows how to add a tooltip to a control
Two stateLearn how to create a navItem with active and inactive states (Example)
MulticlickThe example shows how to configure the behavior of the Undo and Redo buttons

How to customize Toolbar​

In this section you will learn how to customize Toolbar.

TopicDescription
Adding HTML content into itemsLearn how to add a custom image to a toolbar item (Example)
Applying custom iconsLearn how to add custom icons to Toolbar items (Example)
Styling ToolbarLearn how to customize Toolbar (Example)
CSS template AAn example of a CSS template for DHTMLX Toolbar
List of CSS classesThe CSS classes included in the DHTMLX library

How to work with Toolbar controls​

In this section you will learn how to disable, enable, hide, and show Toolbar controls, and more.

TopicDescription
Disabling / enabling controlsLearn how to disable or enable controls on a page dynamically (Example)
Is disabledLearn how to check whether a control is disabled on the page
Hiding / showing controlsLearn how to hide or show controls dynamically (Example)
Setting values/states of controlsLearn how to change the value or state of a control (Example)
Getting values/states of controlsLearn how to get the current value or state of a control (Example)
Setting focus on an Input controlLearn how to set focus on an input of Toolbar

How to work with data in Toolbar​

In this section you will learn how to use the TreeCollection API to work with Toolbar data — add, update, remove, and rearrange controls.

TopicDescription
Adding controlsLearn how to add new controls to Toolbar dynamically (Example)
Updating controlsLearn how to update config options of a Toolbar control (for example, to change the icon of the control) (Example)
Rearranging controlsLearn how to move Toolbar controls to another position
Removing controlsLearn how to remove a control from Toolbar (Example)
TreeCollection APICheck the full TreeCollection API reference

How to work with selection​

In this section you will learn how to work with selection.

TopicDescription
Setting selectionLearn how to select a Toolbar control (Example)
Is selectedLearn how to check whether a Toolbar control is selected (Example)
Getting selected itemsLearn how to get the selected items
Removing selectionLearn how to remove selection from a Toolbar control (Example)

How to work with Toolbar events​

In this section you will learn how to work with Toolbar events.

TopicDescription
Event basic rulesLearn the basic rules of event handling
Event handlingLearn how to attach, detach, or call Toolbar events (Example)

API reference​

In this section you will find the API reference for Toolbar and its controls.

Toolbar API​

TopicDescription
Toolbar methodsCheck the list of Toolbar methods
Toolbar eventsCheck the list of Toolbar events
Toolbar propertiesCheck the list of Toolbar properties
TreeCollection APICheck the TreeCollection API for working with Toolbar data

Toolbar controls API​

TopicDescription
Button propertiesCheck the list of properties of the Button control
Custom HTML propertiesCheck the list of properties of the Custom HTML control
Datepicker propertiesCheck the list of properties of the Datepicker control
ImageButton propertiesCheck the list of properties of the ImageButton control
Input propertiesCheck the list of properties of the Input control
MenuItem propertiesCheck the list of properties of the MenuItem control
NavItem propertiesCheck the list of properties of the NavItem control
SelectButton propertiesCheck the list of properties of the SelectButton control
Separator propertiesCheck the list of properties of the Separator control
Spacer propertiesCheck the list of properties of the Spacer control
Title propertiesCheck the list of properties of the Title control

Common functionality​

In this section you will learn about common library functionality that is useful when you work with Toolbar.

TopicDescription
Touch supportLearn how to work with touch support (Example)
TypeScript supportLearn how to work with TypeScript
Accessibility supportLearn about accessibility support in Toolbar
Custom scrollLearn how to enable custom scroll in Toolbar
AwaitRedrawLearn how to run code after the component renders

Any questions left?​


info

Do you need more functionality? Feel free to share your suggestions in the comments below!