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

how to get the suggestions by the first letter? #30

Open
saidhappy010 opened this issue Oct 9, 2019 · 2 comments
Open

how to get the suggestions by the first letter? #30

saidhappy010 opened this issue Oct 9, 2019 · 2 comments

Comments

@saidhappy010
Copy link

how to get the suggestions by the first letter.
for example, when I enter the letter A I would like to have suggestions that start with A.
(Australia, Austria, Argentina, Armenia ......) ----> A
or the S
(Serbia, Slovakia, Slovenia, Switzerland .....) ------> S
but the component displays me the suggestions that contain the letter A.
(German, Australia, Austria, Italy, France, Japan, Netherlands ......).
how could we do that.
Thanks

@PaitoAnderson
Copy link
Collaborator

Just a suggestion here, instead of using the data property which I'm guessing your using you could use the fetchData() property and implement your own search logic or use https://github.com/bvaughn/js-search.

@saidhappy010
Copy link
Author

saidhappy010 commented Nov 3, 2019

Please. could you give me an example about fetchData.
Thank you

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