[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Only expand of top nodes?
Page 1 of 1

Only expand of top nodes?

PostPosted: Mon Feb 12, 2007 10:50 am
by kilroy
Hi.

As far as I know there are only options to expand or collapse tree at init by setting the option in the script below the tree:

<script type="text/javascript">
treeObj = new JSDragDropTree();
treeObj.setTreeId('manualTree');
treeObj.setMaximumDepth(6);
treeObj.setMessageMaximumDepthReached('Maximum depth reached');
treeObj.initTree();
treeObj.expandAll();
</script>

Is it possible to init the tree with only the topnodes expanded? Would help me a lot.

Thanks in advance.

PostPosted: Mon Feb 12, 2007 2:00 pm
by kilroy