diff options
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/_entries/79_getlevel.md')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jqTree/_entries/79_getlevel.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/_entries/79_getlevel.md b/ecomp-portal-FE/client/bower_components/jqTree/_entries/79_getlevel.md new file mode 100644 index 00000000..183e63ca --- /dev/null +++ b/ecomp-portal-FE/client/bower_components/jqTree/_entries/79_getlevel.md @@ -0,0 +1,13 @@ +--- +title: getLevel +name: node-functions-getlevel +--- + +Get the level of a node. The level is distance of a node to the root node. + +{% highlight js %} +var node = $('#tree1').tree('getNodeById', 123); + +// result is e.g. 2 +var level = node.getLevel(); +{% endhighlight %} |