Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

v0.3.0 - Matterhorn

Pre-release
Pre-release
Compare
Choose a tag to compare
@jbate jbate released this 21 Sep 08:08
· 168 commits to master since this release

Notable new features include:

(Simple) Styling of example pages

Events

The code can now publish/trigger events that the integrators can listen/subscribe to. Currently the only events that the code publishes are:

  • formatting-search - before the format URL is called to get the final address
  • formatted-address - after the format URL is called and the final address is being rendered

An example of subscribing to these events would be:
address.events.on("formatting-search", function(){ document.querySelector(".loader").classList.remove("hidden"); });

"Edit address"

After a formatted address is returned an "Edit address" link is shown enabling manual edit of each of the address lines.

As well as the following other updates:

  • Creating the picklist container dynamically
  • Creating the formatted address container dynamically
  • Hidden inputs to store the formatted address that can be posted back to the server
  • Inclusion of a customisable 'take' parameter for controlling the picklist size