WbkRibbonView.Closed

Syntax

Closed: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The Closed event is fired on selecting the Close item in main menu of the workbook.

Example

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 Close item of the workbook main menu
	ribbonView.Closed.add(function()
		{
			alert('The Close main menu item is selected');
		});

To execute the example, select the Close item in main menu of the workbook, after that the following message appears in the screen: The Close item is selected in main menu.

See also:

WbkRibbonView