getLayoutButton();
The getLayoutButton method returns the Layout button.
The method returns an object of the PP.Ui.RibbonButton type.
To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Block the Layout button:
// Get tool ribbon var ribbon = workbookBox.getRibbonView(); // Get the View tab var viewCatView = ribbon.getViewCategory(); // Get the Layout tab var layoutButton = viewCatView.getLayoutButton(); // Block the button layoutButton.setEnabled(False);
After executing the example the Layout button in the View ribbon tab is blocked:
See also: