nymphaea-v1 / quasar-app-extension-q-tel-input

MIT License
6 stars 0 forks source link

Hi, how to get Exposed values ? #2

Closed francelwebdev closed 1 year ago

francelwebdev commented 1 year ago

Hi, how to get Exposed values ?

nymphaea-v1 commented 1 year ago

Hi! You can read about exposed values here. To get exposed values, you need to use Template Refs. For example:

<template>
    <q-tel-input
      v-model="phone"
      ref="telInputElement"
    >
  </q-tel-input>
</template>

<script setup>
import { ref } from 'vue'

const phone = ref('+995322983035')
const telInputElement = ref() // will be { "country": "GE", "callingCode": "995", "nationalNumber": "322983035" }
</script>