Toolbar API overview
Toolbar methods
Name | Description |
---|---|
destructor() | removes a Toolbar instance and releases occupied resources |
disable() | disables and dims an item(s) of Toolbar |
enable() | enables a disabled item(s) of Toolbar |
getSelected() | returns an array with IDs of selected items |
getState() | gets current values/states of controls |
hide() | hides an item of Toolbar |
isDisabled() | checks whether an item of Toolbar is disabled |
isSelected() | checks whether a specified Toolbar item is selected |
paint() | repaints Toolbar on a page |
select() | selects a specified item of Toolbar |
setFocus() | sets focus on an Input control by its ID |
setState() | sets values/states of controls |
show() | shows an item of Toolbar |
unselect() | unselects a selected Toolbar item |
important
Use TreeCollection methods to work with data.
Toolbar events
Name | Description |
---|---|
afterHide | fires after hiding a sub-item of Toolbar |
beforeHide | fires before hiding a sub-item of Toolbar |
click | fires after a click on a control |
input | fires on entering a text into the input field |
inputBlur | fires when a control is blurred |
inputChange | fires on changing the value in the Input control of Toolbar |
inputCreated | fires when a new input is added |
inputFocus | fires when a control is focused |
keydown | fires when any key is pressed and a control of Toolbar is in focus |
openMenu | fires on expanding a menu control |
important
Use TreeCollection events to work with data.
Toolbar properties
Name | Description |
---|---|
css | Optional. Adds style classes to Toolbar |
data | Optional. Specifies an array of data objects to set into Toolbar |
menuCss | Optional. Adds style classes to all containers of Toolbar controls with nested items |
navigationType | Optional. Defines the action that opens menu options |
Toolbar Button properties
A Button control can have the following properties.
Toolbar Custom HTML button properties
A Custom HTML button control may possess the following properties.
Toolbar Datepicker properties
A Datepicker control can have following properties.
Toolbar ImageButton properties
An ImageButton control can have the following properties.
Toolbar Input properties
An Input control can possess the following properties.
Toolbar MenuItem properties
A MenuItem control can have the following properties.
Toolbar NavItem properties
A NavItem control may have the following properties.
Toolbar SelectButton properties
A SelectButton control can have the following properties.
Toolbar Separator properties
A Separator control may have the following properties.
Toolbar Spacer properties
A Spacer control can possess the following properties.
Toolbar Title properties
A Title control can have the following properties.