value

sets the initial value for a control

string|number|array value;

Example

webix.ui({ 
  view:"multiselect", id:"multi", label:"Participant",
  value: [1,2], // selects elements with these IDs initially
  options:[
    { id:1, value:"Alex Brown" },
    { id:2, value:"Dan Simons" },
    { id:3, value:"John Doe" },  
  ] 
});

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:

See also
Back to top