swisnl / jQuery-contextMenu

jQuery contextMenu plugin & polyfill
https://swisnl.github.io/jQuery-contextMenu/
MIT License
2.25k stars 745 forks source link

How to disable the context menu altogether. #708

Closed GLubomirov closed 4 years ago

GLubomirov commented 4 years ago

Hi,

I need to have the menu appear only in certain situations. How do I disable the menu, after i initialized it.

Greetings, George

bbrala commented 4 years ago

You can disable the trigger by calling a method on the menu. Check the docs for more information.

https://swisnl.github.io/jQuery-contextMenu/docs/plugin-commands.html#disable-a-contextmenu-trigger