value of ui.multisuggest, Properties Webix Docs
sets the initial value for a control
string|number value;
Example
rows:[
{ view:"text", name:"country", label:"Country", value:"Belarus" },
{
view:"combo", value:1, options:[
{ id:1, value:"Banana" },
{ id:2, value:"Papaya" },
{ id:3, value:"Apple" }
]
},
{ view:"button", css:"webix_primary", value:"Submit data"}
]
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:
- 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