Is there a way to add a Tooltip to a JSTree node? I would like to display extra information when the user hovers over an element.
I\'m pretty dense when it comes to
I create my jstree dynamically using the create_node
function:
$("#my_tree").jstree("create_node",
"my_node",
"inside",
{ "attr": { "id": "my_node" },
"data": { "attr": { "class": "show_tooltip",
"title": "my tooltip text" },
"title": "my node text" } } );
And then I define the .show_tooltip
class as tooltip:
$(".show_tooltip").tooltip();