called on the right mouse click
id | string | id of item on which right click occurs |
e | Event | native event object |
boolean | true to trigger the default action, false to block it |
myDataView.attachEvent("onBeforeContextMenu", function(id, e){
// your code here
});
the event is blockable, returning false will block the default action
Back to top