I added some features to the autocomplete 1.0.2 component that were needed by my project. The features are:
"Dropdown button"
If option dropdownImgSrc is given, the image defined by it will be inserted next to the input field that, when clicked, will open the autocomplete result list with empty search params. Makes autocomplete more usable when the input might only hold few items but might hold many as well.
setData function
Function to reset the local data used by Autocomplete if it needs to be updated after initialization.
"N results omitted" message support
Autocomplete only shows options.max items on the result list, even if there are more results. This may be confusing in some cases, as there is no cues that some results are missing from the list. Added option omittedResultsMsg that, if defined and results > options.max, will be shown in the bottom of the autocomplete list. For example
omittedResultsMsg: "({0} results omitted - refine your search)"
will show message e.g. "(50 results omitted - refine your search)".