on

allows attaching custom handlers to inner events of the component

object on;

Example

webix.ui({
    view:"spreadsheet", 
    on:{
        onChange: function(mode, name, oldName){ 
            webix.message("Operation: " + mode); 
        }
    }
});

Related samples

Details

All keys defined in the object will be processed as the names of events, and their values as the related handlers.

The property can be used as an alternative to the attachEvent method.

See also
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 html5 framework and page of web spreadsheet product.