Hello,
I have a question about DataCollection.
I have a model that exports a DataCollection object.
Reading some documentation it seems that any operation on a DataCollection requires a ui component. is it right?
My need is just to take one value from an object of the DataCollection.
Example:
//model
export function getCities(){
return new webix.DataCollection(cities);
}
const cities = [
{ id:“1”, value:“Tirane, Albania” }
]
//view
console.log(getCities()) //ok it retun a DataCollection object
console.log(getCities().getFirstId()) //undefined
console.log(getCities().getItem(“1”)) //undefined <<this is what I need.
Am I missing something?