show all possible options on focus
I'm using typeahead.js in combination with bootstrap.
Works great! But I would like to show all possible options straight away on focus of the input field. Goal is to create a kind of select element (with 6 standard options in my case) which allows users to add a custom option if they want. But I need the user to immediately see the already available options.
Can this be done? Thanks a million!
M.
+1
That sort of functionality isn't in the wheelhouse of typeahead.js. It's mostly meant for supplementing search boxes.
I'd suggest Select2.
@jharding
I don't think you fully understand.. With select2 the user is not able to type something if he can't find the option he is looking for.. he would be obliged to select something from the list..
I'll reopen this issue. I'm hesitant to commit to anything though as I'm unsure how I feel about adding this sort of functionality to typeahead.js.
Thanks @jharding. In my opinion this is more someting for typeahead than for select2 as usually in a select you can only select what is available. Typeahead is rather a way to suggest something to the user which has already used before for example, but keeps the option to add something new. In my case I have a limited amount of categories available which the user mostmy will choose from, but occasionally he will need to create a new one. I want to show all current caategories per default so the user is more likely going to select an existing one. Thanks for considering this option on an already excelent "plugin"!
:+1:
+1
+1
+1
+1 - please...
+1ers, can you take a look at #719 and let me know if it will resolve this issue?
I can't seem to get the commit in #719 to run, I keep getting error
:+1:
+1
I had issues with the placeholder / hints showing both at the same time and also the hint showing as 'undefined'. I have commented on #719 with what I did to fix it for me.
+1
+1
Closing in favor of #719.