How can I add a tooltip for the elements inside the tree?
adelmemariani opened this issue · 3 comments
Hi,
Thank you for your great work!
I wonder if I can add a tooltip (a popup to show some explanation) to the tree items.
As far as I understood, we pass the nodes to the component, but I want to add a new icon (or button) to the items and show the tooltip after mouse-over event.
Is it possible to add HTML tags in the items?
Thank you for your consideration :)
The label
property for each node can be a JSX element, so instead of simply supplying text, you can pass a more advanced node and use a library such as React Tooltip to render whatever tooltip you desire.
The
label
property for each node can be a JSX element, so instead of simply supplying text, you can pass a more advanced node and use a library such as React Tooltip to render whatever tooltip you desire.
That's wonderful. Thank you for your answer :)
Closing as resolved. Let me know if further help is required.