Sochettra / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

How to create Root node #220

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have upgraded .5 version to 1.1 , as you mentioned root node is hidden always.
But, my project requires root node visible.How can I do that ?

(If a single visible root is wanted, one could always create one using<ul>Top 
level node expanders are not connected by vlines (requires additional expander 
icon).
)

Please advise

Thank you very much

Original issue reported on code.google.com by mahalaxm...@gmail.com on 16 Aug 2011 at 9:53

GoogleCodeExporter commented 8 years ago
The old root node displayed the 'title' attribute of the tree.
If you had
Tree with title 'foo' and added two nodes 'bar' and 'baz' it would render as

foo
 +- bar
 +- baz

Now the title is hidden, so you have to create one top level child 'foo' and 
add 'bar' and 'baz' as children of this.

(hidden root)
  +- foo
     +- bar
     +- baz

Original comment by moo...@wwwendt.de on 17 Aug 2011 at 5:31

GoogleCodeExporter commented 8 years ago
considered verified

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:16

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 17 Jul 2012 at 4:19

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 26 Jan 2013 at 4:08