getBranchStyle(level: Number);
level. Hierarchy level.
The getBranchStyle method gets style of branch header accounting for hierarchy level.
To execute this example, the page must contain the TreeMap component named treeMap (see Example of Creating the TreeMap Component ):
// Get style of header for the second level branch var stl = treeMap.getBranchStyle(1); // Show value as JSON sructure alert(JSON.stringify(stl, null, 4));
After the example execution style of header for the second level branch is displayed as JSON structure.
See also: