@autoaddress.ie/autoaddress-vue v0.5.0
autoaddress-vue
The autoaddress-vue library for using the Autoaddress Control for Vue applications.
Installation
Using npm:
$ npm i -g npm
$ npm i '@autoaddress.ie/autoaddress-vue'
Usage
Importing:
import Autoaddress from '@autoaddress.ie/autoaddress-vue/src/Autoaddress';
Creating the Component:
You can then use it in your Vue component:
<Autoaddress licencekey='your key'/>
As a minimum requirement, a licencekey will have to be provided to send requests to the Autoaddress control.
For a list of configuration options please refer to this link:
https://www.autoaddress.ie/support/developer-centre/jquery-plugin/configuration
The Autoaddress component is event driven, and we have provided the opportunity for you to hook into these events and add your own logic with custom callback functions. These events range from when the component is initialised all the way to the end when your address has been found.
We also pass data back in key events so you can grab this data and perform custom actions to suit your own needs.
Here is an example of an event when an address is found and get called your custom function:
<Autoaddress licencekey='your key' addressProfile="your address profile" .....
@onAddressFound="functionName1('onAddressFound',$event)" @onAutoCompleteSelected="functionName2('onAutoCompleteSelected',$event)" ..../>
You can check all the other callback events from this link:
https://www.autoaddress.ie/support/developer-centre/jquery-plugin/events