No. I don't want to "handle" it as a label, but at the rest of the tree.
That line looks ugly, as the root is connected to nothing (visually).
From a functionality point of view however it's like all other nodes.
1. How can I get rid of this?
2. For other cases, because of usability, I would like to have the
expand box removed (or deactivated), because from the business logic
point of view, all nodes at the first level should be quickly visible,
without the user to click. So is it possible this too?
Don't think so no. The tree is rendered as an html list and its CSS
style and rendering is recursive. So it applies the same style to each
node. I did try to get rid of that first line but couldn't get it
working in all browsers. If you have a patch for this it would be very
welcome.
But the root is known, right? (because of tree.setRootNodeDisplayed(true) )
So why not add another CSS class to that node, called "root"?
This way, that small cell displaying the upper branch/box could be
rendered with display:none
Also if you don't care about the visual cue (the vertical lines) then
you can probably style the Tree without this problem.
I do. That's the main point of the tree - otherwise I could use a UL/LI
structure myself.
thanks.
Joseph.