setValue

sets a new value for the control

void setValue(string|Date value, [any config] );
valuestring|Datea new value for the control
configanyoperation config

Example

webix.ui({
  view:"timeboard",
  id: "myBoard"
});
 
$$("myBoard").setValue("10:55");

Details

The method takes a string like "12:10" or a date object as a parameter. 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