Collapsed: function (sender, args);
sender. Event source.
args. Event information.
The Collapsed event occurs when minimizing the tool 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 tool ribbon ribbonView.Collapsed.add(function() { alert('Time series tool ribbon is collapsed'); }); //Subscribe to the event of expanding time series tool ribbon ribbonView.Expanded.add(function() { alert('Time series tool ribbon is expanded'); });
After executing the example tool ribbon collapses and the following message appears in the screen: Time series tool ribbon is collapsed.
See also: