-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Feature request: being able to manually trigger contextMenu update #555
Comments
When using the https://swisnl.github.io/jQuery-contextMenu/demo/dynamic-create.html |
Hi, thank you for the quick response! |
First off, thanks for such an amazing plugin. To add to this topic, I believe an update option would be wonderful, as I've noticed that if you do something And then bind a context menu on the something class, all works well. However, this only occurs if the element is already in the dom. For dynamically created elements, or for elements that may get moved in and out of the dom via ajax calls, the context menu no longer works as the element was in the dom during the initial context menu call. I've been through the documentation of the plugin, and as far as I can tell no method for this desired behavior works. Perhaps I'm just missing something, but it seems like a way to update element binds is the way to go. |
… stats for items. Fixes issue Issue #555
I've added a feature to support updating the menu. See: http://swisnl.github.io/jQuery-contextMenu/docs.html#update-contextmenu-state |
Hi,
There are various triggers for manually manipulating the contextMenu. However, there is currently no easy way to trigger an update of the elements in the contextMenu. It would be great for plugins to be able to update the elements, e.g. with
$(".some-selector").contextMenu("update");
.The text was updated successfully, but these errors were encountered: