DataCollection as options in Combo

snippet: https://snippet.webix.com/f4bm2w8s

Using a DataCollection in options works fine for select/multicombo but not for combo.

Is it possible to change the behavior so that it's the same across all views?

Tagged:

Comments

  • edited August 2018

    Hello,

    For example, you made this:

    var value1 = new webix.DataCollection({
      data:[
        {id:1, value:"one"},
        {id:2, value:"two"},
      ]
    });
    

    So here
    { view : 'combo', options : value1 }

    options - this is what will be send to the list which is in the suggest

    There is options: {data : value1}

    value1 is an object with a suggest's config(by this it's easy to send the data collection to the list)

  • edited August 2018

    Is it possible to change the behavior so that it's the same across all views?

    Yep, I admit there's an inconsistency in controls API. We will sync it so that all the select boxes can load Data Collection directly.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!