Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
Tree - disable highlighting
Hi,
I have a question regarding the tree component.
If you select an tree item it will be highlighted (with a dark background color). It stays highlighted until another item is clicked. There are situations in which this could be confusing, particularly if you use other components like buttons after that.
So I wonder if there is a way to disable this onClick effect? Is there a style example anywhere?
Thanks, Thorsten
Last updated on
OK - solved with the help of Firebug.
Just overwrite this css rule in your own style:
.v-tree-node-selected span {
background: white;
color: black;
}
BR, Thorsten
Last updated on
+2
You cannot reply to this thread.