SelectedIndex: Number
The SelectedIndex property sets index of the active tab.
Default index of the active tab is 0.
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: