Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Initialize Root tree with close state
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
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
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);
View User's Profile View All Posts By User U2U Member
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.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004