getDataCategory ();
The getDataCategory method returns the Data tab in the workbook ribbon.
This method returns an object of the WbkRibbon class.
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 Ribbon component var ribbonView = workbookBox.getRibbonView(); //Get the Data workbook tool ribbon tab var dataCategory = ribbonView.getDataCategory(); var dataCategoryButt = new PP.Ui.Button({ ParentNode: document.body, //DOM parent node Content: "Data", //Text Click: PP.Delegate(onClickDataCategory) }); var state = False; function onClickDataCategory() { //Show or hide the Data workbook tool ribbon tab state ? dataCategory.hide() : dataCategory.show(); state = !state; }
After executing the example the user can hide or show the Data tab in workbook ribbon.
To get the tab, click the Data tab under the side panel.
See also: