Set Hover Text on a JSTree Node

3,501 views
Skip to first unread message

Scott Rosenbaum

unread,
Nov 19, 2012, 3:14:58 PM11/19/12
to struts2...@googlegroups.com
We would like to have a description appear for each node in a JSTree.  I can put the description into the attr for the node by calling:

node.getAttr.put("description",. nodeDescription) in my action class.

Unfortunately, I can not figure out how to display that value when I hover over the text.  Tried a few things with no luck including:
 -title
 -tooltip
 -javascriptTooltip

Do you happen to have any hints on how I could get this to work?

thanks.
sr

Scott Rosenbaum

unread,
Nov 28, 2012, 12:38:35 PM11/28/12
to struts2...@googlegroups.com
In case anyone wants to know how to do this in the future, answer is super easy for simple HTML hover over.

Just add a title as an attribute.  

node.setTitle("Text to display in tree")
node.getAttr().put("title", "Text to display on hover");

sr

kishore machepalli

unread,
Jun 15, 2013, 8:04:53 AM6/15/13
to struts2...@googlegroups.com
How to show tooltip in hover_node tooltip for a node
Reply all
Reply to author
Forward
0 new messages