Options
All
  • Public
  • Public/Protected
  • All
Menu

A Postcode Lookup Controller instances manages the state of a postcode or address search widget and updates the DOM accordingly

To detach from the DOM call use the #removeAll() method

Hierarchy

  • Controller

Index

Constructors

constructor

Properties

button

button: HTMLButtonElement

Reference to postcode lookup button

client

client: Client

Ideal Postcodes API client

context

context: HTMLElement

HTML Element in which postcode lookup tools live

data

data: GbrAddress[]

Cache for recently retrieved data

document

document: Document

Reference to the DOM, to which this.scope belongs

input

input: HTMLInputElement

Reference to postcode lookup input field

lastLookup

lastLookup: string

Stores most recent lookup

message

message: HTMLParagraphElement

Reference to message paragraph element

options

options: CachedOptions

Caches options object

outputScope

outputScope: HTMLElement | Document

Scopes the DOM for fields which should receive address inputs

scope

scope: HTMLElement | Document

Scopes the DOM for the entire controller

select

select: HTMLSelectElement

Reference to dropdown containing address suggestions

selectContainer

selectContainer: HTMLElement

Reference to HTMLElement that wraps the