getTitleCategory ();
The getTitleCategory method returns the Title tab in the workbook tool 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 Title workbook tool ribbon tab var titleCategory = ribbonView.getTitleCategory(); var tableCategoryButt = new PP.Ui.Button({ ParentNode: document.body, //DOM parent node Content: "Title", //Text Click: PP.Delegate(onClickTitleCategory) }); var state = False; function onClickTitleCategory() { //Show or hide the Title workbook tool ribbon tab state ? titleCategory.hide() : titleCategory.show(); state = !state; }
After executing the example the Title button is placed on the page. Clicking this button shows or hides the Title tab on the time series tool ribbon.
See also: