isSelected()
checks whether a specified Toolbar item is selected
isSelected(id: string | number): boolean;
Parameters:
id: string | number
- the id of a Toolbar item
Returns:
true
, if an item of Toolbar is selected; otherwise, false
.
Example
toolbar.isSelected("web"); // -> returns true/false
Related sample: Toolbar. Select / unselect items
Change log:
added in v7.0