diff --git a/dev/index.html b/dev/index.html index f6d32c4d..3575d9e4 100644 --- a/dev/index.html +++ b/dev/index.html @@ -30,6 +30,7 @@ +
diff --git a/dev/schema.js b/dev/schema.js index 3ae9c6f8..d3a48039 100644 --- a/dev/schema.js +++ b/dev/schema.js @@ -180,6 +180,16 @@ module.exports = { label: "E-mail (email field)", model: "email", placeholder: "User's e-mail address" + }, { + type: "googleAddress", + label: "Location (googleAddress)", + model: "location", + placeholder: "Location", + onPlaceChanged(value, place, rawPlace, model, schema) { + console.log("Location changed! " + value); + //console.log(place); + //console.log(rawPlace); + } }, { type: "text", label: "Phone", diff --git a/src/fields/fieldGoogleAddress.vue b/src/fields/fieldGoogleAddress.vue new file mode 100644 index 00000000..953b36df --- /dev/null +++ b/src/fields/fieldGoogleAddress.vue @@ -0,0 +1,106 @@ + + input.form-control(type="text", v-model="value", :readonly="schema.readonly", :disabled="disabled", :placeholder="schema.placeholder", debounce="500", @focus="geolocate()") + + + + +