nexus site path corrected
[portal.git] / ecomp-portal-FE / client / bower_components / jqTree / _entries / 79_getlevel.md
1 ---
2 title: getLevel
3 name: node-functions-getlevel
4 ---
5
6 Get the level of a node. The level is distance of a node to the root node.
7
8 {% highlight js %}
9 var node = $('#tree1').tree('getNodeById', 123);
10
11 // result is e.g. 2
12 var level = node.getLevel();
13 {% endhighlight %}