Is it possible to:
1. get rid of the upper branch from the Root node (when the root is
displayed?)
2. get rid of the "expand node box" from the Root node when the root
is expanded or intended to be used always expanded for the first level?
No, the root node is simply another node of the Tree, its not special in
any way.
It sounds as if you want to handle the root node as a label. In that
case why not render the rootNode independently from the Tree or create
your own Tree which renders the root node suited to your needs.
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?
Also is it possible to remove the gray border around the tree?
Yes the border is defined in the tree stylesheet. Click places a copy of
this stylesheet under /click/tree/tree.css. Grab a copy of that
stylesheet and customize as you need.
Wouldn't it be better if the default would be good?
It is not typical for click components to have useless visible borders.
thanks,
Joseph.