nexus site path corrected
[portal.git] / ecomp-portal-FE / client / bower_components / jqTree / _entries / 39_closenode.md
1 ---
2 title: closeNode
3 name: functions-closenode
4 ---
5
6 **function closeNode(node);**
7
8 **function closeNode(node, slide);**
9
10 Close this node. The node must have child nodes.
11
12 Parameter **slide**: close the node using a slide animation (default is true).
13
14 {% highlight js %}
15 var node = $tree.tree('getNodeById', 123);
16 $tree.tree('closeNode', node);
17 {% endhighlight %}
18
19 To close the node without the slide animation, call with **slide** parameter is false.
20
21 {% highlight js %}
22 $tree.tree('closeNode', node, false);
23 {% endhighlight %}