NavBreadcrumbItem.getDimTreeView

Syntax

getDimTreeView ();

Description

The getDimTreeView method returns attribute dimension tree shown in a panel.

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 selectAllButt = new PP.Ui.Button({
		ParentNode: document.body, //DOM parent node
		Content: "Select all nodes", //Text      
		Click: PP.Delegate(onClickselectAll)     
	}); 
				
	function onClickselectAll()
	{
		//Get a component used to display and control workbook attributes based on the PP.Ui.Master component
		var navbrCr = workbookBox.getPropertyBarView().getNavBreadcrumb();	
		//Get the panel containing dimension tree of the first attribute (PP.TS.Ui.NavBreadcrumbItem)
		var navBrCrItem = navbrCr._selfNavItems[0];
		//Get the attribute dimension tree located in the panel (PP.Mb.Ui.DimTreeView).
		var dimTree = navBrCrItem.getDimTreeView();	
		//Set selection for all dimension tree nodes
		dimTree.selectAll();					
	}

After executing the example a button named Select All Nodes is placed in the HTML page. Select a series tree node and click the Select All Nodes button. After that all series tree items become selected:

See also:

NavBreadcrumbItem