Monday, 15 June 2015

javascript - How to remove edit option in context menu using jstree? -


I have to remove the edit option in the context menu, using the "jstree" jquery plugin. Please tell us how to remove it.

My code is:

var contextual menu = function () {

  $ ("# tree_3"). Jstree ({"core": {"themes": {"responsive": false}, // so that "check_callback" is created: true,}, "type": {"default": {"icon": "fa {"Key": "FA-file icon-state-alert icon-LG"}}, "state": {"key": "FA-folder icon-state-alert icon-LG"}, "file": { "Icon": "Demo2"}, "plugins": ["contextmenu", "dnd", "state", "type"], "contextmenu": {"item": {"edit": wrong}}} );}  


No comments:

Post a Comment