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