Closed eskaigualker closed 11 years ago
I use bootstrap dropdown: http://twitter.github.io/bootstrap/javascript.html#dropdowns
Cheers, Marco
Thank you ,but this can be used to create a right-click menu or just a regular dropdown menu?
I think you can create a contextmenu by capturing the tree.contextmenu event and a dropdown plugin like bootstrap dropdown. Unfortunately I don't have an example for this.
Well, i got it using http://medialize.github.com/jQuery-contextMenu/ The problem now is when capturing tree.contextmenu event, and adding "jqtree-selected" class to the node, it will not be deselected when cli¡cking in another one. Maybe there is a better way to selecting a node?
You could use the selectNode function:
$('#tree1').bind(
'tree.contextmenu',
function(e) {
var node = e.node;
$('#tree1').tree('selectNode', node);
}
);
Great!! that's it
thank you very much
Hi,
I made a little context menu "plugin" to jqTree. Check it out at https://github.com/DavidUv/jqTreeContextMenu if you are interested.
Your plugin works like a charm. Thank you very much!!
We can capture this event, but I don't know how to use it. Which plugin would be useful for creating a secondary menu?
thanks