ezraroi / ngJsTree

Angular Directive for the famous JS Tree
http://ezraroi.github.io/ngJsTree/
MIT License
270 stars 98 forks source link

Context Menu #44

Closed ahmadigbaryia closed 8 years ago

ahmadigbaryia commented 9 years ago

Hi,

I couldn't get the context menu running, here is my configurations:

$scope.i_treeConfig = { ... contextmenu: { items: function(node, callback){ var rename = { label: "Rename", action: function(node){ $scope.i_treeInstance.edit(node); }, shortcut: '113', shortcut_label: "F2" }; var actions = {rename: rename}; callback(actions); return actions; } }, ... plugins: ["wholerow", "dnd", "types", "contextmenu"] };

... some where in the HTML

the contextmenu won't appear, have i miss something?

Thanks Ahmad

ezraroi commented 9 years ago

The context menu plugin is working fine. Please write a plunker that reproduces your problem and I will try to fix it.

ezraroi commented 9 years ago

@ahmadigbaryia any updates?

DanStopka1985 commented 8 years ago

http://plnkr.co/edit/noaPgzEKjjSWueciCTgQ?p=preview it works!