WbkDataView.setSplitterStatPanelHeight

Syntax

setSplitterStatPanelHeight (isStatPanelExpanded);

Parameters

isStatPanelExpanded. Determines whether the panel is expanded.

Comments

If the parameter is set to True, statistics panel is expanded, if it is set to False, the panel is hidden.

Description

The setSplitterStatPanelHeight method increases value of splitter component for displaying and controlling workbook data.

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:

	var setPanelOpen = new PP.Ui.Button({
		ParentNode: document.body, //DOM parent node
		Content: "Open", //text      
		Click: PP.Delegate(onClickSetPanelOpen)
	});
				 
	function onClickSetPanelOpen() {
		var dv = workbookBox.getDataView();
		dv.setSplitterStatPanelHeight(True);//height of the statistics panel is set as a height of expanded panel
	}			
				
	var setPanelClose = new PP.Ui.Button({
		ParentNode: document.body, //DOM parent node
		Content: "Close", //text      
		Click: PP.Delegate(onClickSetPanelClose)
	});
				 
	function onClickSetPanelClose() {
		var dv = workbookBox.getDataView();
		dv.setSplitterStatPanelHeight(False);//Height of the statistics panel is set as height of expanded panel
	}

After executing the example the HTML page will contain the buttons named Open and Close. On clicking the Open button, height that corresponds to height of expanded panel, is set for the statistics panel. On clicking the Close button, height corresponding to height of hidden panel is set for the statistics panel.

See also:

WbkDataView