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.
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: