I have a question regarding richselect's data in Webix. I follow this sample http://docs.webix.com/api__ui.suggest_textvalue_config.html
{
view:"richselect",
options:{
textValue:"name",
data:[
{ name:"Pen" },
{ name:"Apple" },
{ name:"Pineapple" }
]
}
}
Using textValue
, I am able to define the attribute that will appear in the input, but not in the list of options. But how can I do that?
TIA
Disagree. Richselect's suggest includes a list, therefore there's a possibility to modify its template. Here:
webix.ui({
view:"richselect",
options:{ // suggest
textValue:"name",
body:{ // list
template:"#name#",
data:[
{ name:"Pen" },
{ name:"Apple" },
{ name:"Pineapple" }
]
}
}
});