MainMenu.ViewMode

Syntax

ViewMode: PP.Mb.Ui.MainMenuViewMode;

Description

The ViewMode property determines whether menu items are available.

Comments

By default it contains the PP.Mb.Ui.MainMenuViewMode.Default value, that is, all menu items are available.

Use JSON or the setViewMode method to set the property value, and the getViewMode method to get the property value.

Example

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

// Get instance of main menu
rib = expressBox.getRibbonView();
menu = rib.getMainMenu();
// 

After executing the example .

See also:

MainMenu