Wondering what’s next for npm?Check out our public roadmap! »

    @addressfinder/addressfinder-webpage-tools

    1.8.5 • 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.

    Install

    npm i @addressfinder/addressfinder-webpage-tools

    DownloadsWeekly Downloads

    27

    Version

    1.8.5

    License

    none

    Unpacked Size

    420 kB

    Total Files

    30

    Last publish

    Collaborators

    • avatar