-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Hi @JFusco, Firstly, thank you for putting out this component!
I was hoping to make use of it in my project, but in my usecase, the data for the autocomplete is coming from the server. So, I was wondering if this component would work well for that use-case?
I was thinking that I'll probably need to do the following -
- Debounce
onChangealthough it would be nice to have an option to set a minimum threshold beforeonChangeis fired. - When
onChangeis fired, make a call to the server. - When the results are returned, overwrite the data object with the new list of options from the server.
Based on that approach, I had the following questions -
- Will that work? Or are there issues that you anticipate?
- Does the data have to be array of strings? or can be an array of complex events?
- Any way to override the default result-item component? (like, if I need to put an image there, etc).
- And finally, have you used it any such situation, or have an example or gist of the same?
Thank you!