Hi all.
Can a different css class be set when the node is a leaf and when the node is a folder node (root node) or when is a leaf.
Example:
I have this menu, with a dataSource
final TreeGrid menu = new TreeGrid();
menu.setStyleName("rootMenu");
menu.setBaseStyle("nodeSubMenu");
menu.setBodyStyleName("rootMenu");
...
the result is
node1 (class = 'nodeSubMenu')
node2 (class = 'nodeSubMenu')
node3 (class = 'nodeSubMenu')
--- node 3.1 (class = 'nodeSubMenu')
--- node 3.2 (class = 'nodeSubMenu')
--- node 3.3 (class = 'nodeSubMenu')
What I want is to set it like this
node1 (class = 'nodeMenu')
node2 (class = 'nodeMenu')
node3 (class = 'nodeMenu')
--- node 3.1 (class = 'nodeSubMenu')
--- node 3.2 (class = 'nodeSubMenu')
--- node 3.3 (class = 'nodeSubMenu')
Thank you
Can a different css class be set when the node is a leaf and when the node is a folder node (root node) or when is a leaf.
Example:
I have this menu, with a dataSource
final TreeGrid menu = new TreeGrid();
menu.setStyleName("rootMenu");
menu.setBaseStyle("nodeSubMenu");
menu.setBodyStyleName("rootMenu");
...
the result is
node1 (class = 'nodeSubMenu')
node2 (class = 'nodeSubMenu')
node3 (class = 'nodeSubMenu')
--- node 3.1 (class = 'nodeSubMenu')
--- node 3.2 (class = 'nodeSubMenu')
--- node 3.3 (class = 'nodeSubMenu')
What I want is to set it like this
node1 (class = 'nodeMenu')
node2 (class = 'nodeMenu')
node3 (class = 'nodeMenu')
--- node 3.1 (class = 'nodeSubMenu')
--- node 3.2 (class = 'nodeSubMenu')
--- node 3.3 (class = 'nodeSubMenu')
Thank you
Comment