WorkbookView.getRibbonView

Syntax

getRibbonView ();

Description

The getRibbonView method returns workbook ribbon.

Example

To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:

//Get the Data workbook tool ribbon tab and hide it
var rib =  workbookBox.getRibbonView();
//Work with an object obtained by means of the getRibbonView() method
var data = rib.getDataCategory();
data.hide();

After executing the example the Data tab in the ribbon is hidden:

See also:

WorkbookView