onChange

fires when the user changes the value of the DataValue object

void onChange(data){ ... };

Parameters

dataobject the data object

Example

var data = new webix.DataValue({});
data.setValue("Anna");
 
$$("myForm").bind(data);
...
 
data.attachEvent("onChange", function(obj){
        alert("Your new name is: "+ obj.name);
});

Back to top