Code Review
/
portal.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
nexus site path corrected
[portal.git]
/
ecomp-portal-FE
/
client
/
bower_components
/
jqTree
/
_entries
/
13_autoopen.md
1
---
2
title: autoOpen
3
name: options-autoopen
4
---
5
6
Open nodes initially.
7
8
* **true**: open all nodes.
9
* **false (default)**: do nothing
10
* **n**: open n levels
11
12
Open all nodes initially:
13
14
{% highlight js %}
15
$('#tree1').tree({
16
data: data,
17
autoOpen: true
18
});
19
{% endhighlight %}
20
21
Open first level nodes:
22
23
{% highlight js %}
24
$('#tree1').tree({
25
data: data,
26
autoOpen: 0
27
});
28
{% endhighlight %}