I'm looking to creating a custom mask within the Vuetify material framework. The example given is as this:
<template>
<v-card>
<v-card-text>
<v-text-field v-model="mask" label="Mask"></v-text-field>
</v-card-text>
<v-card-text>
<v-text-field :mask="mask" v-model="value" label="Value"></v-text-field>
</v-card-text>
</v-card>
</template>
<script>
export default {
data: () => ({
mask: 'credit-card',
})
}
</script>
So, somewhere the 'credit-card'
mask is defined. However, let's say I want to replace this with a custom made mask...to match on very niche regular expression...
My custom expression would also contain values that must not change, e.g., I need the letter "X" followed by any alphabetical letter (capital only), followed by "-AW-" followed by any 6 numerical digits...so following something like this Veutified masking pattern:
"X" A -"AW"- ######
Where:
A Any capital letter
# Any digit
Does anyone know how this could theoretically be done?