ViewMode: PP.Mb.Ui.MainMenuViewMode;
The ViewMode property determines whether menu items are available.
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.
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: