We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 499a5b1 + 644b385 commit e27b558Copy full SHA for e27b558
lib/components/Autocomplete.vue
@@ -64,6 +64,10 @@ export default {
64
updateMap: {
65
type: Boolean,
66
default: true
67
+ },
68
+ options: {
69
+ type: Object,
70
+ default: () => ({})
71
}
72
},
73
computed: {
@@ -110,7 +114,10 @@ export default {
110
114
this.$_map = mapComp ? await mapComp.$_getMap() : null
111
115
112
116
googleMapsReady () {
113
- this.$_autocomplete = new window.google.maps.places.Autocomplete(this.$refs.input)
117
+ this.$_autocomplete = new window.google.maps.places.Autocomplete(
118
+ this.$refs.input,
119
+ this.$props.options
120
+ )
121
this.$_autocomplete.setTypes(this.$props.types)
122
123
if (this.$_map) {
0 commit comments