lundi 15 février 2016

Options and value won't display in ember-select-guru

I am trying to use ember-select-guru within my own component. The .hbs element looks like this. {{ember-select-guru multiple=true value=values options=options onSelect=(action "onSelect") and my .js looks like this

values: Ember.computed('user' function() {
  const values = [];
  this.get('user.listOfThings').forEach(value => {
    values.push(value.get('name'));
  });
  return values;
}),

with a similar thing for the options array.

My problem is that the strings that are in value.get('name') are not displayed. It is definitely picking up the array because the right number of elements appear in the combobox but they are just empty div elements. The variable values ends up being an array of strings which seems to work normally everywhere else. Does someone know something I don't? I cant find anything in the docs or in the source code to help me.

I would also be open to using something else that behaves the same way. The is an example of how it should look in the docs.




Aucun commentaire:

Enregistrer un commentaire