sets a new value for the component
value | object | a new value for the control |
webix.ui({
view:"daterangepicker",
id: "mydaterange",
format:"%Y-%F-%d %H:%i",
suggest:{
view:"daterangesuggest",
}
});
$$("mydaterange").setValue({
start:webix.Date.monthStart(new Date()),
end:webix.Date.monthStart(webix.Date.add(new Date(), 1, "month"))
}); // sets new value
The second parameter can be of any type (from a string to an object). config will be passed to the onChange event as the last parameter.