Ribbon.SelectedIndex

Syntax

SelectedIndex: Number

Description

The SelectedIndex property sets index of the active tab.

Comments

Default index of the active tab is 0.

Example

To execute the example, the HTML page must contain the Ribbon component named ribbon that includes at least one tab (see Example of Creating the Ribbon Component).

ribbon.getItems()[ribbon.getSelectedIndex()].getGroupName()

After executing the example the user gets the name of the group that includes the selected tab.

See also:

Ribbon