CategoryDeselected: function (sender, args);
sender. Event source.
args. Event information.
The CategoryDeselected event occurs on closing the tab.
A tab gets closed when another tab is selected.
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: