Closed gasparyanyur closed 6 years ago
{ selector: '.file-context', autoHide:true, callback: function (key, options) { var id = options.$trigger.data('id'); if (key === 'download') { $storage.FileDownload() } else if (key === 'delete') { $storage.DeleteFileFolder(options.$trigger); } else if (key === 'share') { $storage.ShareNode(options.$trigger); } else if (key === 'rename') { $storage.RenameNode(options.$trigger); } }, items: { "rename": {name: '{{trans('messages.events.rename')}}'}, "download": {name: '{{trans('messages.events.download')}}'}, "delete": {name: '{{trans('messages.events.delete')}}'}, "share": {name: '{{trans('messages.events.share')}}'} } }
Here is my options object. So I want to after clicking on one of the menu items, to hide context menu
You should return true/false in the callback i think.
http://swisnl.github.io/jQuery-contextMenu/docs.html#callback
Closed due to inactivity.
Here is my options object. So I want to after clicking on one of the menu items, to hide context menu