WbkRibbonView.Opened

Syntax

Opened: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The Opened event is fired on selecting the Open item in the main menu.

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 Open workbook main menu item
ribbonView.Opened.add(function()
{
	alert("The Open workbook main menu item is selected");
});

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

See also:

WbkRibbonView