onBeforeContextMenu

called on right mouse click

void onBeforeContextMenu(string id,Event e){ ... };

Parameters

idstringid of item on which right click occurs
eEventnative event object

Example

some.attachEvent("onBeforeContextMenu", function(id, e){
     //custom code here
});

Back to top