I use Quasar in a Vue2.JS project. I have a QDate, linked with a QPopupEdit ( with a cancel and a set button ). I want to run a specific function when clicking set. If a condition is true, i want to cancel this setting without masking the QDate and the QPopupEdit.
Here the code :
<QPopupEdit
v-model="displayBirthday"
buttons
:label-set="$t('set')"
:label-cancel="$t('cancel')"
>
<QDate
:ref="'test'"
v-model="displayBirthday"
minimal
class="no-shadow"
mask="DD/MM/YYYY"
:locale="locale"
/>
</QPopupEdit>
Thanks.