Feedback Laraform is now in maintenance mode. Read more on our GitHub.

Address Element

An element using Agolia Places to give address suggestions and fill in fields accordingly.

#Examples

#Options

Name Type Description
schema object Schema of a child elements.

#Properties

Name Type Default Description
fields object {...} Fields of the address. By default has the following text type elements: address, address2, zip, city, state, country.
main string 'address' Key of element which should trigger the address suggestion.
children$ object {} Child components.
custom boolean - Determines whether custom fields are used.

#Methods

# .getStateCode(state) @returns {string}

Parameters
  • state string : written name of the state.

Returns US state code for a written state name.


# .reset()

Resets the element to it's default state.


#Slots

# children

Props
  • el$ object : The element component.

Contains the children of the element.


#Events

# addressChange(suggestion)

Parameters
  • suggestion object : an object containing address suggestion.

Triggered when an address is selected. If not defined, by default the suggestions are