dTree/API

add
Adds a node to the tree. Can only be called before the tree is drawn. id, pid and name are required.

Example
mytree.add(1, 0, 'My node', 'node.html', 'node title', 'mainframe', 'img/musicfolder.gif');

openAll
Opens all the nodes. Can be called before and after the tree is drawn.

Example
mytree.openAll;

closeAll
Closes all the nodes. Can be called before and after the tree is drawn.

Example
mytree.closeAll;

openTo
Opens the tree to a certain node and can also select the node.

Can only be called after the tree is drawn.

Example
mytree.openTo(4, true);

Example
mytree.config.target = "mytarget";

Copyright
&copy;2002-2003 Geir Landr&ouml;