DataCatView.getUnbindButton

Syntax

getUnbindButton();

Description

The getUnbindButton method returns the Unbind button.

Comments

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

Example

Executing the example requires that HTML page contains 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 Block and Unbind buttons
var UnbindButton = dataCatView.getUnbindButton();
var ConsolidateButton = dataCatView.getConsolidateButton();
// Rename buttons
UnbindButton .setContent("Unbind series");
ConsolidateButton .setContent("Block series");
// Refresh the Data tab
dataCatView.refresh();

After executing the example the Block and Unbind buttons located on the Data tool ribbon tab of workbook are renamed into the Unbind Series and Block Series, respectively.

See also:

DataCatView