Twitter bootstrap comes with a very handy auto-complete like component called typeahead. I am trying to add a small dropdown button (or widget) such that when pressed the typeahead component would act like a normal dropdown selector showing all of the available data-source bound options (in addition to its native autocomplete ability). The current markup is something like the following:
<input type="text"
data-provide="typeahead"
data-items=5
data-source='["option 1","option 2","option 3"]'>
So in effect what’s needed is for the component to behave as a hybrid of a dropdown and autocomplete widgets.
Anybody has done this before? thanks…
I have found this excellent componnet:
Source code
Live example
One thing though, the drop-down button’s background looks funny on rollover. The fix involves a small change in “bootstrap-combobox.css”: