arvindr21/jsTree-directive — pull request #10 by revo22 (2014-12-31 08:42:21+00:00)
Title: Add a function for customizing the context menu with the selected treenode

Add a function for customizing the context menu with the selected treenode

example :

angularjs:
$scope.treeContextMenuAction = function ($node) {
//alert('ok' + $node.type);
return {
"Delete": {
"label" : "Delete",
"action" : function(obj) {
alert('delete')
}
}
}
}