Closed sylvainmouquet closed 9 years ago
Add a function for customizing the context menu with the selected treenode
example :
<js-tree tree-contextmenuaction="treeContextMenuAction" />
angularjs:
$scope.treeContextMenuAction = function ($node) { //alert('ok' + $node.type); return { "Delete": { "label" : "Delete", "action" : function(obj) { alert('delete') } } } }
Thanks for the contribution @revo22. Do you have a jsfiddle or codepen with this example?
You could see an example here : http://jsfiddle.net/revo22/w3ds20c6/1/
Perfect! Thanks @revo22
Add a function for customizing the context menu with the selected treenode
example :
angularjs: