getReverseCalendarButton();
The getReverseCalendarButton method returns the Reverse Calendar button in the workbook ribbon.
This method returns value of the PP.Ui.RibbonButton.
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 ribbon
var ribbon = workbookBox.getRibbonView();
// Get the Home 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: