jquery-simple-context-menu
jquery-simple-context-menu copied to clipboard
Don't create an item if some condition is not satified
I'd like to not render items if any condition (an option is not selected or an element is hidden) is satisfied.
For example, let's imagine my HTML page has a form with a checkbox. I'd like to have an item in my menu that would only appear if that checkbox is actually checked. Otherwise, that item shouldn't be displayed in the menu.