how to use qpopupproxy in script?
-
The code in vue file like this, how to write in script?
<q-popup-proxy ref="qDateProxy" transition-show="scale" transition-hide="scale"> <q-date v-model="date" @input="() => $refs.qDateProxy.hide()" /> </q-popup-proxy>
-
I answered you in the GH issue.
https://quasar.dev/vue-components/popup-proxy
You just make QPopupProxy the child of the button. See first example.
Scott
-
I mean I want use qpopupproxy in <script> section, not in <template> section.
because I went popup a dialog dynamically. -
Then give it a ref and use the built in methods. (You’ll still need to have the QPopupProxy code in your template).
There is also the dialog and notify plug-ins.
https://quasar.dev/quasar-plugins/dialog
https://quasar.dev/quasar-plugins/notifyScott