SaveAs: function (sender, args);
sender. Event source.
args. Event information.
The SaveAs event is fired on selecting the Save As item in the main menu.
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 Save As tool ribbon menu item ribbonView.SaveAs.add(function() { alert("The Save As toll ribbon menu item is selected"); });
To execute the example, select the Save As item in the menu, after that the following message appears in the screen: The Save As item is selected in the ribbon.
See also: