highlightItem(liItem)
Set the highlighted item
initEvents()
Register some additional events
onInput(e)
Start the typing timer on Input
onKeyDown(e)
Listen for up/down keys
onListMouseOver(e)
Highlight the overed item
queryList(value)
Run the query function
renderComponent()
Render the hidden list element
resetTimer()
The timer is used to wait a little before sending the request, so that we don't send too much requests.
setOptions()
Adds autocomplete options
timerEnd()
Send the request when the timer ends.
toggleHighlightItem(liItem, highlight)
Hightlight or unhighlight an item from the list
updateList(list)
Function to populate the list
validateItem()
Validate the item