Vuesax: Using vuejs-tips/vue-the-mask with vs-input

Created on 23 Aug 2019  路  1Comment  路  Source: lusaxweb/vuesax

Hello, I was wondering if it possible to use the both plugin together to handle masked inputs more easily, specially with label placeholder option.

I've tried to implement this, but the result wasn't satisfactory, there is any way to do this?

Most helpful comment

Import vue-the-mask locally on the component as a directive:

import {mask} from 'vue-the-mask'
export default {
  directives: {mask}
}

Then use it in the input like that:

<vs-input v-mask="['(##) ####-####', '(##) #####-####']" />

>All comments

Import vue-the-mask locally on the component as a directive:

import {mask} from 'vue-the-mask'
export default {
  directives: {mask}
}

Then use it in the input like that:

<vs-input v-mask="['(##) ####-####', '(##) #####-####']" />
Was this page helpful?
0 / 5 - 0 ratings