onChange

fires when the user changes the value of the DataRecord object

void onChange(data){ ... };

Parameters

dataobject the data object

Example

var data = new webix.DataRecord({
        id:"data",
        name:"Anna Gretim",
        title:"Ms."
});
$$("myForm").bind(data);
...
 
data.attachEvent("onChange", function(obj){
        alert("Your new object is: "+ obj.title + obj.name);
});

Back to top