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 an external API to get options #20

Open
ghost opened this issue Oct 13, 2017 · 3 comments
Open

Use an external API to get options #20

ghost opened this issue Oct 13, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2017

It's posible to use an external API to get the suggested options, instead of using a file or a fixed array?
I'm referring to this feature:
http://www.ember-power-select.com/docs/custom-search-action

Thanks!

@selvagsz
Copy link
Owner

selvagsz commented Nov 10, 2017

@robertino-iorii you can use onSearchInputChange to listen for search text changes & fetch the results via api & provide them as options

@selvagsz
Copy link
Owner

Ahh! just noticed that onSearchInputChange works with TypeAhead & PowerSelectMultiple components but does not work with PowerSelect 🐛 🐛 🐛

@selvagsz
Copy link
Owner

Forgot to update here, the issue with PowerSelect is fixed btw

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