user596502
user596502

Reputation: 437

show context menu of jsTree plugin on user defined events

I followed http://www.jstree.com/demo/ to add a tree view. It works perfectly fine.

However i have a requirement to display the context menu not on the right click but on some other events. Each node contains an arrow and upon clicking that arrow, the context menu should be displayed. Does anybody have any idea on how to access the context menu of jsTree plugin and show it on our own defined events?

Upvotes: 1

Views: 1736

Answers (1)

vakata
vakata

Reputation: 3886

Here is the complete solution with the icon to the right: http://jsfiddle.net/DGAF4/492/

The change from the original answer is this:

obj.appendChild(tmp);

Upvotes: 1

Related Questions