-
Notifications
You must be signed in to change notification settings - Fork 66
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
Provide working example of remote source in documentation #97
Comments
The source property is ignored if remote-source is used. The documentation says to listen to changes using the change event and provide suggestions using the suggestions() method. That is working for me. |
Considering I just found @leifneve comment extremely useful as I was confused with the documentation, I would recommend either an example or just a little paragraph. |
Agree, I am not very happy with the remote-source implementation, I think it is kind of confusing. I will try to add the example in the documentation. Whenever I have time, my plan is to re-write the component to be only Polymer 2 compatible, to make it faster. My idea is to simplify it and change the way remote-source works. One of the ideas I have is to remove the remote-source option and just change queryFn to accept functions that returns promises. When queryFn returns promises it is assumed that it is a remote-search and the component will work just fine. But once I find the time to start with new implementation, I will open an issue to collect feedback. |
queryFn + Promise is definitely the way to go! great idea. |
I can't seem to figure out how the remote source functionality is supposed to work. My thought is that if you supply a json file or REST endpoint, along with a text and property value, then it should extract these attributes from the response, and add them as suggestions to the autocomplete list.
Where the json file looks something like this:
But this doesn't seem to work. Am I missing something?
The text was updated successfully, but these errors were encountered: