MainCatView.getChartTypeButton

Syntax

getChartTypeButton();

Description

The getChartTypeButton method returns the Type button in the Chart group.

Comments

The method returns an object of the PP.Ui.RibbonButton type.

Example

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:

MainCatView