Is it possible to display the tooltip as html? If not, JQuery UI has a tooltip widget, can this be used?
Thanks,
$("#tree span.fancytree-title").tooltip();
<ul id="treeData" style="display: none;">
<li id="id1" title="Look, a tool tip!">item1 with key and tooltip[
{"key": "2", "title": "item1 with key and tooltip", "tooltip": "Look, a tool tip!" },
The tooltip is being displayed, however, the html tags are not being interpreted i.e. it is being displayed as text.
Using $("#tree span.fancytree-title").tooltip(); does not seem to make a difference.
I was looking at the fancytree javascript and I noticed the following at line 2893:
...
if(!nodeTitle){
tooltip = node.tooltip ? " title='" + FT.escapeHtml(node.tooltip) + "'" : "";
...
Is this what may be causing the tooltip to not get displayed properly although JQuery ui tooltip widget is being invoked?
Thanks
I am trying to use the tooltip content feature as follows, however the tooltip is not being displayed:
fancyTreeNode.myTooltip = { content: "<table> <tr><td> tooltip specific to this node in tree...</table>" };
....
$("#tree span.fancytree-node").tooltip("option", "content", function() {
return this.data.myTooltip; // This line is never triggered in debugger.
});
Thanks