defines data items of the drop-down list
webix.ui({
view:"combo",
value:1, //the initially selected one
label: 'Fruit',
options:[
{ value:1, label:"Banana"},
{ value:2, label:"Papai" },
{ value:3, label:"Apple" }
]
});
webix.ui({
view:"combo",
value:"Apple",
options:["Banana", "Papai", "Apple"]
});
webix.ui({
view:"combo",options:"server/options.php"
});
Each option presents a singular select option in the drop-down list. Options can be set as:
The initially selected option is defined by a value property.
Back to top