Skip to main content

isSelected()

checks whether a specified Ribbon item is selected

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