on_context

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

EventHash on_context;

Example

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

Details

It's a object property that contains already available handlers.
All the handlers (existing and newly-added) 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 easy javascript framework and page of tree visualization javascript product.