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

Dynamic suggestions #5

Closed
EmilMoe opened this issue Apr 18, 2016 · 3 comments
Closed

Dynamic suggestions #5

EmilMoe opened this issue Apr 18, 2016 · 3 comments

Comments

@EmilMoe
Copy link
Contributor

EmilMoe commented Apr 18, 2016

Sorry for all the reports :-)

I want to dynamic load suggestions from my backend as the user types in the field. I'm not sure however if you have made this possible yet?
So now I just preload everything, but this isn't optimal when the database grow large of course.

Also it seems like that when I populate it with array of objects, it has a hard time auto completing my input?

@JosephusPaye
Copy link
Owner

JosephusPaye commented Apr 19, 2016

Check out the new v0.8.6. I re-wrote the autocomplete to use only Vue and it is now completely reactive. Note that the API has changed: http://josephuspaye.github.io/keen-ui/#/ui-autocomplete-docs

This should also fix #2 and #4.

If you want to load suggestions from the backend, watch the autocomplete value prop and make your AJAX calls when it is changed.

See this CodePen for an example: http://codepen.io/JosephusPaye/pen/eZKNGN?editors=0010

@EmilMoe
Copy link
Contributor Author

EmilMoe commented Apr 19, 2016

Thanks. I'm currently working on another part of the project, but I will let you know as soon I have had time to look into this.

@EmilMoe
Copy link
Contributor Author

EmilMoe commented Apr 26, 2016

Working

@EmilMoe EmilMoe closed this as completed Apr 26, 2016
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