You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many developers creates elements programatically. Reference the selector by it's own path is not good in this case. So, the selector property could receive the element itself instead only receive the path string.
constelement=document.createElement('button');el.innerHTML('Click Me')$.contextMenu({// Allow the selector be an Element or JQueryNode Elementselector: element// or $(element), to make it easy for the implementation with JQuery})document.body.appendChild(element)
The text was updated successfully, but these errors were encountered:
Many developers creates elements programatically. Reference the selector by it's own path is not good in this case. So, the selector property could receive the element itself instead only receive the path string.
The text was updated successfully, but these errors were encountered: