Skip to main content

isSelected()

checks whether a specified Toolbar item is selected

isSelected(id: Id): 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

Change log:

added in v7.0