value

sets the initial value for a control

object value;

Example

webix.ui({
    view:"daterangepicker", 
    suggest:{
        view:"daterangesuggest",
    },
    // initial value of the control
    value: {
        start:webix.Date.monthStart(new Date()),
        end:webix.Date.monthStart(webix.Date.add(new Date(), 1, "month"))
    } 
});

Related samples

Details

All controls fall into:

  • single-value - those containing a string or a number;
  • multiple-value - those containing an array of values;

In case of multiple-value controls, the property points to the ID of the initially chosen option.

Value of the control may be:

See also
Back to top