Documentation

options

defines data items of the drop-down list

object options;

Example

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

See also

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.

Back to top