getChartTypeButton();
The getChartTypeButton method returns the Type button in the Chart group.
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). Make unavailable the Type button in the Chart group of the Home tool ribbon tab:
// Get tool ribbon var ribbon = workbookBox.getRibbonView(); // Get the Home tab var mainCatView = ribbon.getMainCategory(); // Get the Type button in the Chart group on the main tab var cTypeButton = mainCatView.getChartTypeButton(); // Disable this button cTypeButton.setEnabled(False);
After executing the example the Type button in the Chart group becomes unavailable:
See also: