Creates an Interface instance
Event handler: Fires when focus moves away from input field Triggers:
onBlur
callbackEvent handler: Fires when input field is focused Triggers:
onFocus
callbackEvent handler: Fires when input is detected on input fiel Triggers:
onInput
callbackEvent handler: Fires on "keyDown" event of search field Triggers:
select
selection of address if key is "Enter"onInput
callback if key is "Backspace"close
closing of suggestion list if key is "Esc"next
highlight next suggestion if key is "Down"previous
highlight next suggestion if key is "Up"Event handler: Fires when mousedown on <li>
HTML Entity
Triggers:
Removes interface from DOM
Loads callbacks supplied by interface options into private instance methods
Binds events from input and suggestion (ul) entities to private event handlers
Injects user interface into the DOM and initialises internal representation for address suggestions
Refreshes address suggestion interface
Sets message as a list item, no or empty string removes any message
Setter for interface suggestions, which also triggers interface refresh
[description]
Autocomplete.Interface
Represents the user interface which binds to the DOM.
The Interface class is designed to be consumed by an
Autocomplete.Controller
instance and should not be accessed directly unless absolutely necessary.The main function of the Interface is to: