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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix web ui framework and page of javascript menu library product.