Event object

Is the event object available within event handlers ?

Example (FF) - getting current mouse position:

var grid = dhxLayout.cells(“a”).attachGrid();

var showContext= function(r,c) {
alert(e.pageY); // e is undefined

grid.attachEvent(“onRightClick”, showContext);


It depends on event
In case of onRightClick it is the third parameter of event

grid.attachEvent("onRightClick", function(id, index, event){ console.log(event); //native event object })

Thanks very much !!
Easy, perhaps too easy :slight_smile: