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

To execute the example the HTML page must contain the application ribbon named ribbon. The ribbon has three tabs: one general tab and two context ones, combined into a group named Cells: (see Example of Creating the Ribbon Component). Add a handler for the CategoryDeselected event.

ribbon.CategoryDeselected.add(function (sender, args) {

     ribbon.getCategoriesByGroupName("Cells:")[0].addPanel(new PP.Ui.RibbonPanel({ Caption: "New Panel" }))

})

After executing the example on closing the tabs new panels are added on the first contextual tab.

See also:

Ribbon