Skip to content

onAfterContextMenu

fires after the context menu was called in the item area

function onAfterContextMenu(
// the id of the clicked item
id: string,
// a native event object
e: Event,
// the target HTML element
node: HTMLElement
): void
grid.attachEvent('onAfterContextMenu', function(id, e, node){
console.log("Right mouse button was pressed");
});