Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use named blocks to customize various sections of the components #1457

Open
nfagerlund opened this issue May 21, 2021 · 1 comment
Open

Use named blocks to customize various sections of the components #1457

nfagerlund opened this issue May 21, 2021 · 1 comment

Comments

@nfagerlund
Copy link

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.

@cah-brian-gantzler
Copy link
Contributor

cah-brian-gantzler commented Sep 2, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants