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

Pass @extra to suggested option component #98

Open
AndreJoaquim opened this issue Jan 29, 2020 · 0 comments
Open

Pass @extra to suggested option component #98

AndreJoaquim opened this issue Jan 29, 2020 · 0 comments

Comments

@AndreJoaquim
Copy link

Hello! 👋

I have a use-case where I'd like to have a power-select-with-create-suggestion component, to use in all of my invocations of <PowerSelectWithCreate>. Nevertheless, I'd like to change the message in this component. For this, it'd be helpful if the @extra argument would also be passed to the <SuggestedOption> component.

The ember-power-select documentation states the following:

[extra is an] Object to store any arbitrary configuration meant to be used by custom components

The description seems that this argument can solve this problem easily :) What do you think? If you're happy with it, I can open a pull request with the (simple) addition.

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

1 participant