getValue

returns the current value of the control

string|array getValue();
string|arraythe current value of the control

Example

webix.ui({ 
  view:"multiselect", id:"multi", label:"Participant",
  value: "1,2",
  options:[
    { id:1, value:"Alex Brown" },
    { id:2, value:"Dan Simons" },
    { id:3, value:"John Doe" },  
  ] 
});
 
$$("multi").getValue(); // returns "1,2"

Details

The returned value of the control can be a string or an array depending on the stringResult property.

See also
Back to top