@addressfinder/addressfinder-webpage-tools

1.8.7 • Public • Published

AddressFinder Webpage Tools

This NPM package is designed to work alongside the AddressFinder Widget to add autocomplete capability to your Ecommerce store or webpage.

It provides three classes:

  • PageManager, which identifies your address form, and handles the mapping of your address form configurations to the DOM.
  • FormManager, which binds AddressFinder to your form, and handles the population of the correct address fields when an address is selected
  • MutationManager, which listens for mutations to the DOM, and reinitialises AddressFinder on mutations

Installation

npm install @addressfinder/addressfinder-webpage-tools

Usage

import { PageManager, MutationManager, FormManager } from '@addressfinder/addressfinder-webpage-tools'

For more examples of usage, look in the examples folder.

Package Sidebar

Install

npm i @addressfinder/addressfinder-webpage-tools

Weekly Downloads

6

Version

1.8.7

License

none

Unpacked Size

421 kB

Total Files

30

Last publish

Collaborators

  • addressfinder