Exited: function (sender, args);
sender. Event source.
args. Event information.
The Exited event is fired on selecting the Exit item in main menu of the workbook.
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 selecting the Exit workbook main menu item ribbonView.Exited.add(function() { alert("The event of selecting the Exit workbook main menu item occurred."); });
To execute the example, choose exit in the menu. The following message appears in the screen: The Exit item has been selected in the workbook main menu.
See also: