WbkRibbonView.getTitleView

Syntax

getTitleView ();

Description

The getTitleView method returns workbook title.

Comments

The method returns an object of the PP.Exp.Ui.EaxTitleView type.

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 a workbook tool ribbon title
var titleView = ribbonView.getTitleView();
var tableViewButt = new PP.Ui.Button({
ParentNode: document.body, //DOM parent node
Content: "Title", //Text      
Click: PP.Delegate(onClickTitleView)     
}); 
var state = False;
function onClickTitleView()
{
//Show or hide workbook tool ribbon title
state ?  titleView.hide() :  titleView.show();
state = !state;
}

After executing the example the Title button is placed on the page. Clicking this button shows or hides the workbook title.

NOTE. The workbook is shown if the Title button on the Home ribbon tab is clicked.

See also:

WbkRibbonView