setValue

sets a new value for the component

void setValue(string|array value);
valuestring|arraya new value for the control

Example

webix.ui({
  view:"rangeslider",
  id: "myslider",
  width:550,
  label:"Price", 
  stringResult: true,
});
 
$$("myslider").setValue("10, 20"); // sets new range of 10-20

Details

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