Options supported by
Configures which WAI-ARIA specification version Address Finder should target.
"1.1"will target the most recent spec
"1.0"will enable some regressions to support the 1.0 spec.
Although 1.1 was released in 2017, this currently defaults to "1.0" as it receives the widest support among screen readers. VoiceOver (for MacOS and iOS) and NVDA in particular benefit from this.
Defaults to "1.0"
autocomplete attribute of the input field to prevent Chrome's autofill from clashing
CSS class assigned to the AddressFinder container/wrapper
Applies additional styling to the the Address Finder container element. Accepts CSSStyleDeclaration object
Specify the Document to operate on
Hide a list of HTML elements when Postcode Lookup is instantiated
Specify these elements using query selectors or direct HTMLElement references
CSS selector or HTML Element which specifies the
<input> field which the
Address Finder View should bind.
Applies additional styling to the input field. Ideal for quick tweaks. Accepts CSSStyleDeclaration object Input styles are restored to original when controller is detached from DOM
CSS class assigned to suggestion list (bound to
Applies additional styling to the the suggestion list. Accepts CSSStyleDeclaration object
CSS class assigned to message box
Note this doesn't necessarily indicate an error
Initial message when Address Finder opens an no query is available
"Start typing to find address"
Aria-label attached to the suggestion list. Prompts screen reader user on how to operate list
"Select your address"
Message to present when no match found
Message shown to user to unhide address fields if
hide attribute is configured
Invoked when the user unfocuses from the address input field.
Invoked when Address Finder suggestion box is closed (i.e. hidden from user).
Invoked when user selects or focuses address input field.
Invoked when input is detected on address input field.
Invoked when keypress is triggerd on input
Invoked when controller is attached to DOM
Invoked when mousedown event is triggered on suggestion list
Invoked when Address Finder suggestion box is opened (i.e. presented to the user).
Invoked when controller is detached from DOM
Invoked when an address suggestion in suggestion box is selected.
Invoked when hidden fields are unhidden (i.e. user selects an address or options to manually insert address)
Scopes the operable area of the DOM
Specify a clickable element to unhide elements hidden with
Class of clickable unhide element