MainMenu.DiscussItemSelected

Syntax

DiscussItemSelected: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The DiscussItemSelected event occurs after selecting the Discuss menu item.

Example

To execute the example, the HTML page must contain the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Get main menu:

// Get instance of main menu
rib = expressBox.getRibbonView();
menu = rib.getMainMenu();
// Add event handlers
menu.DiscussItemSelected.add(function(){
console.debug("The Discuss menu item is selected");
});
menu.ExportItemSelected.add(function(sender, args){
console.debug("Selected export format: " + args.format);
});
menu.ItemCreating.add(function(){
console.debug("Menu item is being created...");
});
menu.ItemCreated.add(function(){
console.debug("Menu item is created");
});

After executing the example .

See also:

MainMenu