summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE/client/bower_components/jqTree/_entries/39_closenode.md
blob: 0e90ae5d473a3b99ef964f62ad573aaedb88702b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
title: closeNode
name: functions-closenode
---

**function closeNode(node);**

**function closeNode(node, slide);**

Close this node. The node must have child nodes.

Parameter **slide**: close the node using a slide animation (default is true).

{% highlight js %}
var node = $tree.tree('getNodeById', 123);
$tree.tree('closeNode', node);
{% endhighlight %}

To close the node without the slide animation, call with **slide** parameter is false.

{% highlight js %}
$tree.tree('closeNode', node, false);
{% endhighlight %}