on

allows attaching custom handlers to inner events of the component

EventHash on;

Example

webix.ui({
    view:"list", 
    ...
    on:{
        'onItemClick': function(id){ 
            alert("you have clicked on an item with id="+id); 
        }
    }
});

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