Although auto-completion of user input does not fit perfectly into the context of MyPhoto, it is still a very common requirement, so we should dedicate a short section to the topic (albeit without integrating the functionality into MyPhoto). Auto-completion allows for the partial display of a list of items based on user input, and effectively avoids having to load a large amount of data all at once as well as overloading the user with potential choices. One popular third-party library that works seamlessly with Bootstrap is typeahead.js
. As noted on their official Github repository (https://github.com/twitter/typeahead.js), typeahead.js
is:
"Inspired by the autocomplete search functionality of twitter.com, typeahead.js is a flexible JavaScript library that provides a strong foundation for building robust typeaheads." "The typeahead.js library consists of two components: the suggestion engine, Bloodhound, and the UI view, Typeahead. The suggestion engine is responsible for computing...