on_context

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

hash 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 hash 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 popular javascript framework and page of javascript charts product.