fires when the user changes the value of the DataRecord object
var data = new webix.DataRecord({
id:"data",
name:"Anna Gretim",
title:"Ms."
});
$$("myForm").bind(data);
// ...
data.attachEvent("onChange", function(obj, config){
alert("Your new object is: "+ obj.title + obj.name);
});
The function executed on this event, takes 2 arguments:
You can pass a custom value of any type to the config parameter. To do that call the setValues method passing your value as the 2nd parameter.