The documentation page for the setValue method of the DataValue mixin. Webix Docs
sets a new value for the component
void setValue(string value, [any config] );
Example
var data = new webix.DataValue({});
data.setValue("Anna");
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 2nd parameter.
The value of the control may be:
- a text value in the input text and textarea field;
- a selected item like a date in the calendar and a color in the colorboard;
- a state of the two-state control (checkbox, radio, toggle);
- a selected option of integral buttons (tabbar, tabview, segmented);
- a selected option of select, richselect and combo;
- a string with selected options of the multiselect and multicombo controls.
See also