setValue

sets a new date range

void setValue(object range, [any config] );
rangeobjectrange object with 'start' and 'end' fields for currently selected date range
configanyoperation config

Example

webix.ui({
    view:"daterange1",
    id:"daterange1"
});
$$("daterange1").setValue({start:new Date(2016,9,30), end:new Date(2016,10,2)});

Details

The range object contains two fields, or either of them:

  • start - a Date object for the start date
  • end - a Date object for the end date.

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

See also
Back to top