MainMenu.getDiscussMenu

Syntax

getDiscussMenu(): PP.Ui.DiscussMenu ;

Description

The getDiscussMenu method returns instance of the Share popup menu.

Example

To execute the example, the HTML page must contain the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Check if there is the Share menu item:

// Get instance of main menu
rib = expressBox.getRibbonView();
menu = rib.getMainMenu();
// Check if there is the Share menu
console.debug(menu.getDiscussMenu() ? "The Share menu item is available" : "The Share menu item is not available" );

After executing the example, the console displays a message depending on whether there is the Share button.

See also:

MainMenu