Ribbon.CategoryDeselected

Syntax

CategoryDeselected: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The CategoryDeselected event occurs on closing the tab.

Comments

A tab gets closed when another tab is selected.

Example

Executing the example requires an HTML page that contains the application ribbon named ribbon (see Example of Creating the Ribbon Component). The ribbon contains three tabs Home, Text, Style. Add a handler for the CategoryDeselected event.

ribbon.CategoryDeselected.add(function (sender, args) {
  ribbon.addCategory(new PP.Ui.RibbonCategory({
    Caption: "View"
  }), 4);
})

After executing the example, the View tab is added on closing the tabs.

See also:

Ribbon