[go: up one dir, main page]

getaddress-typeahead
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Javascript - Typeahead.

Install

From NPM

npm install getaddress-typeahead

Or CDN

<script src="https://cdn.getaddress.io/scripts/getaddress-typeahead-1.1.0.min.js"></script>

Example Usage

  <label for="textbox_postcode" class="control-label">Postcode:</label>
  <input type="text" id="textbox_postcode" > 


  <script>
    getAddress.typeahead("textbox_postcode","postcode", "API Key or Domain Token");
  </script>

Options

The full list of options, and their defaults:

getAddress.typeahead(
        'textbox_id',
         search_on: 'postcode|locality|town_or_city|district|county|country', /*the field to search on*/
        'API KEY or Domain Token'
        }
    );

Dependents (1)

Package Sidebar

Install

npm i getaddress-typeahead

Weekly Downloads

5

Version

1.1.1

License

MIT

Unpacked Size

20.8 kB

Total Files

18

Last publish

Collaborators

  • getaddress