CategorySelected: function (sender, args);
sender. Event source.
args. Event information.
The CategorySelected event is fired on selecting a tab.
To execute the example, the HTML page must contain the application ribbon named ribbon (see Example of Creating the Ribbon Component) that contains at least one tab. Add a handler for the CategorySelected event.
ribbon.CategorySelected.add(function (sender, args)
{
ribbon.getSelectedItem().setCaption("Is Selected")
})
After executing the example on selecting the tab (clicking its heading), this tab is assigned the heading Is Selected.
See also: