getDimTreeView(key: Number);
key. Dimension key.
The getDimTreeView method returns view of the dimension tree in the selection wizard.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Then get tree view of one of the selection wizard's dimension, disable multiple selection in this tree, and show panel name using the dimension key:
var dimBarMaster = expressBox.getPropertyBarView().getDimBarMasterView(); // Display selection wizard dimBarMaster.show(); // Get first dimension key var dimKey = dimBarMaster.getCurrentState().dims.its.it[0].k; var title = dimBarMaster.getPanelByDimKey(dimKey).getTitle(); console.log("Key: " + dimKey + ", Title: " + title); // Get dimensions tree var tree = dimBarMaster.getDimTreeView(dimKey).getControl(); // Prohibit multiple selection in the dimension with the dimKey key tree.setMultiSelect(False);
After executing the example multiple selection is disabled in the dimension named Countries with the 1646 key, and the browser console displays information on this dimension:
Key: 1646, Title: Countries
See also: