ember-power-select icon indicating copy to clipboard operation
ember-power-select copied to clipboard

Use named blocks to customize various sections of the components

Open nfagerlund opened this issue 4 years ago • 1 comments

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.

nfagerlund avatar May 21 '21 02:05 nfagerlund

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?

cah-brian-gantzler avatar Sep 02 '22 14:09 cah-brian-gantzler