How it Works
Postcode Lookup can be attached to any form with pre-existing address inputs and an empty container to render the Postcode Lookup UI.
When initialised it will:
- Identify the context container defined by
context
- Render the Postcode Lookup UI within the context container including:
- Postcode Lookup text field
- Postcode Lookup button
- Container to render address list
- Message container
- Pipe address results to the fields defined in
outputFields
. - Perform a key check to determine whether it is usable. If the check fails, initialisation is aborted. Use the
onCheckFailed
callback to update your page for manual address entry.