Skip to content

onContext

a property used to define custom context-click (right click) handlers for elements in the DataGrid cells

let onContext: EventHash
var dgrid = webix.grid({
autoConfig: true,
data:[
{ text:"<div class='myActive'>click here</div>" }
],
onContext:{
"myActive":function(event, id, target){
console.log("Active area was right-clicked");
}
}
});

It’s an object property that contains all available handlers.

All the handlers (existing and newly-created) are specified by the related class name.