onListBeforeContextMenu

fires on an item right click, before the native context menu is displayed

void onListBeforeContextMenu(string itemId,Event ev,HTMLElement node,object list);
itemIdstringthe id of the clicked item
evEventa native event object
nodeHTMLElementthe target HTML element
listobjectthe list object where click has happened

Example

$$("myBoard").attachEvent("onListBeforeContextMenu", function(itemId,ev,node,list){
    // your code
 
    // block native context menu
    webix.html.preventEvent(ev);
});

Related samples

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix best ui framework and page of list in javascript product.