getValue of DataValue, Methods Webix Docs
returns the current value of the component
string getValue();
| string | a color in the hex format |
Example
webix.ui({
view:"colorboard",
id:"color",
cols :30,
rows :30,
width :400,
height :400
});
$$('color').setValue("#2626FF")
$$('color').getValue();// -> "#2626FF"
Details
Value of the control may be:
- text value in the input text and textarea field;
- selected item like date in calendar and color in the colorboard;
- state of the two-state control (checkbox, radio, toggle);
- selected option of integral buttons (tabbar, tabview, segmented;
- selected option of select, richselect, and combo;
- string with selected options of a multiselect and multicombo control.
See also