NavBreadcrumbItem.Selected

Syntax

Selected: Array;

Description

The Selected property indicates that the attribute is selected.

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 setSelectedButt = new PP.Ui.Button({
		ParentNode: document.body, //DOM parent node
		Content: "Select panel", //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];
		//Set or remove attribute selection 
		navBrCrItem.getSelected() ? navBrCrItem.setSelected(false) : navBrCrItem.setSelected(true);
	}

After executing the example the HTML page contains the WorkbookBox component and a button named Select Panel. Select a tree node in the time series database hierarchy, and click the Select Panel button. After this the user gets the panel that contains dimension tree of the first attribute, and attribute selection is set or hidden:

Selection is set:

Selection is hidden:

See also:

NavBreadcrumbItem