onContext

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

EventHash 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 object property that contains all available handlers.
All the handlers (existing and newly-created) are specified by the related class name.

Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.