WbkCategoryView.getReverseCalendarButton

Syntax

getReverseCalendarButton();

Description

The getReverseCalendarButton method returns the Reverse Calendar button in the workbook ribbon.

Comments

This method returns value of the PP.Ui.RibbonButton.

Example

To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component). Rename the Reverse Calendar button in the workbook ribbon:

// Get tool ribbon
var ribbon = workbookBox.getRibbonView();
// Get the Home tool ribbon category
var mainCategory = ribbon.getMainCategory();
// Get the Reverse Calendar button
var reverseCalendarButton = mainCategory.getReverseCalendarButton();
// Rename this button 
reverseCalendarButton.setContent("Backwards");

After executing the example the Reverse Calendar button in the workbook ribbon is named In Reverse Order:

See also:

WbkCategoryView