using DataCollection with combo

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.

Hello,

Create a collection and set it as value of the data property inside combo options body.

Like here http://webix.com/snippet/7f19bbbd

@jyorch2, out of sheer curiosity, how did you figure out that options can be an object? That’s not documented at all in the ui.combo.options documentation (the page only says array|string), and neither is it documented in the Combo overview.

confused AF