Collapsed: function (sender, args);
sender. Event source.
args. Event information.
The Collapsed event occurs when minimizing the ribbon.
To collapse the ribbon, click the
button in the upper right corner of the panel.
To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:
//Get the Ribbon component
var ribbonView = workbookBox.getRibbonView();
//Subscribe to the event of collapsing time series ribbon
ribbonView.Collapsed.add(function()
{
alert('Time series ribbon is collapsed');
});
//Subscribe to the event of expanding time series ribbon
ribbonView.Expanded.add(function()
{
alert('Time series ribbon is expanded');
});
After executing the example ribbon collapses and the following message appears in the screen: Time series ribbon is collapsed.
See also: