WbkRibbonView.getTableCategory

Syntax

getTableCategory ();

Description

The getTableCategory method returns the Table tab in the workbook tool ribbon.

Comments

This method returns an object of the WbkRibbon class.

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 Ribbon component
var ribbonView = workbookBox.getRibbonView();
//Get the Table workbook tool ribbon tab
var tableCategory = ribbonView.getTableCategory();
var tableCategoryButt = new PP.Ui.Button({
ParentNode: document.body, //DOM parent node
Content: "Table", //Text      
Click: PP.Delegate(onClickTableCategory)     
}); 
var state = False;
function onClickTableCategory()
{
//Show or hide the Table workbook tool ribbon tab
state ?  tableCategory.hide() :  tableCategory.show();
state = !state;
}

After executing the example the Table button is placed on the page. Clicking this button shows or hides the Table tab on the workbook tool ribbon.

See also:

WbkRibbonView