tnn
Junior Member
Posts: 5
Registered: 4/24/2008
Location: SJC
Member Is Offline
|
| posted on 5/1/2008 at 05:56 AM |
|
|
Initialize Root tree with close state
Hello,
as normally, I create a tree like this:
new tree (TREE_ITEMS, TREE_TPL);
is there a parameter for having the tree close instead of showing the tree items by default?
please help.
thx
|
|
|
tigra
Administrator
Posts: 1912
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 5/1/2008 at 01:37 PM |
|
|
you can use 'st' key:
['home','index.html',{'st':0}]
or collapse the item after the tree initialization
var myTree = new tree (TREE_ITEMS, TREE_TPL);
myTree.a_index[0].open(1);
|
|
|
tnn
Junior Member
Posts: 5
Registered: 4/24/2008
Location: SJC
Member Is Offline
|
| posted on 5/1/2008 at 04:30 PM |
|
|
thank you.
second choice works great.
|
|
|