onBeforeContextMenu

fires before the context menu is called in the item area

boolean onBeforeContextMenu(string id,Event e,HTMLElement node);
id
stringthe id of the clicked item e
Eventa native event object node
HTMLElementthe target HTML element
booleanreturning false will block the event

Example

$$("list").attachEvent("onBeforeContextMenu", function(id, e, node){
     if (some_check(id)) 
          return false; // blocks the context menu
     else 
          return true;
});

Details

Returning false from the event handler will block further processing.

See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of javascript data table product.