ViewCatView.getAutoUpdateButton

Syntax

getAutoUpdateButton();

Description

The getAutoUpdateButton method returns the Refresh Automatically button.

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). Rename the Refresh Automatically button and update the View tab that houses this button:

// Get tool ribbon
var ribbon = workbookBox.getRibbonView();
// Get the View tab
var viewCatView = ribbon.getViewCategory();
// Get the Autoupdate button
var autoUpdateButton = viewCatView.getAutoUpdateButton();
// Determine a new button name
autoUpdateButton.setContent("Autoupdate");
// Refresh the View tab
viewCatView.refresh();

After executing the example the Refresh Automatically button in the View tab of workbook ribbon is renamed to Autoupdate:

See also:

ViewCatView