getDataEditCancelButton();
The getDataEditCancerButton method returns the Undo Changes button.
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). Rename the Save Changes and Undo Changes buttons, then refresh the Data tab that houses these buttons:
// Get tool ribbon var ribbon = workbookBox.getRibbonView(); // Get the Data tab var dataCatView = ribbon.getDataCategory(); // Get the Save Changes and Undo Changes buttons var dataEditSaveButton = dataCatView.getDataEditSaveButton(); var dataEditCancelButton = dataCatView.getDataEditCancelButton(); // Rename buttons dataEditSaveButton.setContent("Save"); dataEditCancelButton.setContent("Undo"); // Refresh the Data tab dataCatView.refresh();
After executing the example the Save Changes and Undo Changes buttons positioned on the Data tab of the workbook ribbon, are renamed to Save and Undo respectively:
See also: