fires when a user changes month, year or time in selector
range | object | range object with "start" and "end" fields for currently selected date range |
config | any | source of change |
$$("$daterange1").attachEvent("onChange", function(range, config){
//... some code here ...
});
The config parameter can have the following values:
Also, you can get a custom value as the config parameter. To do that call the setValue/setValues method passing your value as the last argument:
webix.ui({
view:"daterange",
// ..config
on:{
onChange: function(range, config){
// config is {yourProperty: "yourValue"}
}
}
});
// onChange event will receive object as the last parameter
$$("$daterange1").setValue(newValue, {yourProperty: "yourValue"});