hi, im trying to use the data stored in a webix.DataCollection, in a combo.
but i cant figure how.
the data have this structure
[{id, value1, …, value5},…{id, value1, …, value5}]
and I need to redefine, filter and template in this way.
options: {
filter: function(item, input){
var id = item.id;
var value1= item.value1;
return value1.indexOf(input) !== -1 || id.indexOf(input) !== -1;
},
template: '#id#',
body:{
data: options,
template: '#id# : #value1#'
}
}
thanks in advance for your help.