setValue

sets a new date range

void setValue(object range);

Parameters

rangeobjectrange object with 'start' and 'end' properties for currently selected date range

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 properties, or either of them:

  • start - (Date) a Date object for the start date
  • end - (Date) a Date object for the end date
See also
Back to top