ember-power-select
ember-power-select copied to clipboard
Use named blocks to customize various sections of the components
I'm working with this design where:
- The options in my select include some extra explanatory text or decoration, to help you decide which one to pick.
- When closed, the select leaves that extra stuff out and just shows the primary text of the selected option.
I can do that today by passing a @selectedItemComponent string, but I'll have to add an extra component that does nothing but this:
<span class="ember-power-select-selected-item">
{{@option.name}}
</span>
And it would be much nicer to just pass a named <:selectedItem> block or something.
This seems like a good idea. Although thinking ember-basic-dropdown would have to implement it first to allow this addon to take advantage of that. Any movement towards this?