selectEl(level: Number);
level. Level number.
The getFirstItemByLevel method returns the first element of the set level.
To execute the example, the HTML page must contain the DimensionTree component named dimTree (see Example of Creating the DimensionTree Component). Output name of the first element of the 0 level:
// Output name of the first element of the 0 level
console.log("Name of the first element of the 0 level: " + dimTree.getFirstItemByLevel(0));
As a result the console display name of the first element of the 0 level:
Name of the first element of the 0 level: 1990
See also: