Ribbon.CategorySelected

Syntax

CategorySelected: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The CategorySelected event is fired on selecting a tab.

Example

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:

Ribbon