Constructor
new GatheringLocationAutocompleteController()
Example
<input type="text"
data-controller="gathering-location-autocomplete"
data-gathering-location-autocomplete-api-key-value="YOUR-KEY">
Methods
(async) connect()
- Description:
Connect function - runs when controller connects to DOM
- Source:
disconnect()
- Description:
Cleanup when controller disconnects
- Source:
initAutocomplete()
- Description:
Initialize Google Places Autocomplete using the classic Autocomplete class (PlaceAutocompleteElement doesn't expose data programmatically, so we use the old API)
- Source:
initialize()
- Description:
Initialize the controller
- Source:
(async) loadGoogleMapsPlaces()
- Description:
Load Google Maps Places library
- Source: