options

defines data items of the drop-down list

object options;

Example

webix.ui({
    view:"multicombo",
    value:1, // the initially selected one
    label: 'Fruit',
    options:[ 
       { "id":1, "value":"Banana"}, 
       { "id":2, "value":"Papaya"}, 
       { "id":3, "value":"Apple"}
    ]
});
 
webix.ui({
    view:"multicombo",
    value:"Apple",
    options:["Banana", "Papaya", "Apple"]
});
 
webix.ui({
    view:"multicombo",
    options:"server/options.php"
});

Related samples

Details

Each option presents a singular select option in the drop-down list. Options can be set as:

  • a simple array;
  • an associative array of objects with id and value properties;
  • a string with a path to a script that loads options from server.

The initially selected option is defined by a value property.

See also
Back to top