onContext

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

hash onContext;

Example

var dtable = webix.ui({
    view:"datatable",
    autoConfig: true,
    data:[
        { text:"<div class='myActive'>click here</div>" }
    ],
    onContext:{
        "myActive":function(event, id, target){
            webix.message("Active area was right-clicked");
        }
    }
});

Details

It's a hash property that contains all available handlers.
All the handlers (existing and newly-created) are specified by the related class name.

Back to top
If you have not checked yet, be sure to visit site of our main product Webix web control library and page of javascript graph library product.