vendredi 11 janvier 2019

Is there a way to customize selected item in ember-power-multiple-select without rendering custom component's template for each selected option?

As the docs state,

In multiple selects the selectedItemComponent component is rendered as once per each selected option.

I wonder if there is a way to make it render in a different way: I need to show selected value when only one option is selected, but when there are several options selected I'd like to display

"<selectedThings> - 3" i.e just a text - type and number of selected options.




Aucun commentaire:

Enregistrer un commentaire