v-mask icon indicating copy to clipboard operation
v-mask copied to clipboard

Is it possible to use multiple masks?

Open Marcellofabrizio opened this issue 4 years ago • 5 comments

I was using Vue The Mask in a project I'm working on. But I was facing some really annoying problems with it since it has become outdated. One of the good features it had was to allow the use of multiple masks. Is this possible with v-mask?

Marcellofabrizio avatar Aug 14 '20 13:08 Marcellofabrizio

Good question. I suggest you to use something like (some test over the input) ? 'mask 1' : 'mask 2'

caputchinefrobles avatar Oct 19 '20 16:10 caputchinefrobles

Plus one here.

Daniel4Digital avatar Jun 21 '21 17:06 Daniel4Digital

Good question. I suggest you to use something like (some test over the input) ? 'mask 1' : 'mask 2'

This solution is ridiculous. I think the best solution is; It should be able to mask more than one into the array.

cnbcyln avatar Aug 04 '21 06:08 cnbcyln

Any updates on this topic ?

mavr1982 avatar Sep 08 '21 10:09 mavr1982

I ended up using a computed to return a mask based on the user input. It's not the best solution after all, but it's how I managed to solve it.

Marcellofabrizio avatar Sep 08 '21 13:09 Marcellofabrizio