Closed ahmadigbaryia closed 8 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
The context menu plugin is working fine. Please write a plunker that reproduces your problem and I will try to fix it.
@ahmadigbaryia any updates?
http://plnkr.co/edit/noaPgzEKjjSWueciCTgQ?p=preview it works!
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