-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 minLength option, akin to Bootstrap's #120
Comments
Can you go into a little more detail about what Bootstrap does with The way I'm thinking of implementing this is if the query is less than |
Many thanks Jake. If It has occurred to me that one may wish to have minLength vary per datum? A use case is as follows: A prefetch that returns the 8 most recent items with a min length of zero so these results are shown on focusing the input, plus a remote data source that searches prefixes once the minLength is 2 characters, followed by a fulltext search when the length reaches 6 characters. That may be convoluted, but hope the illustration is useful / interesting. One could achieve this programmatically in Bootstrap with an asynchronous EDIT Which is all to say, simply returning an empty dataset when the input length is less than the I hope that's helpful food for thought! Congrats on 0.9.0! Cheers |
I could see how it'd be useful to support the |
So for now, |
Thanks @jharding . One thing I just noted, it seems that when the In any case, I am delighted to see Issue #62 - it really is great for some paradigms. Arguably, if these were to interact, I believe |
Following up on Issue #119, it would be great to have an equivalent
minLength
option that operated the same way as Bootstrap's, namely “The minimum character length needed before triggering autocomplete suggestions”.It may be worth noting that when
minLength
is0
for Bootstrap typeahead the autocomplete dropdown appears when the<input>
tag is focused.The text was updated successfully, but these errors were encountered: