maska icon indicating copy to clipboard operation
maska copied to clipboard

Mask price

Open wduandy opened this issue 3 years ago • 6 comments

How to mask prices? e.g.:

12500 → 125,00 100 → 1,00

wduandy avatar Oct 14 '21 05:10 wduandy

You could use mask #*,##

beholdr avatar Oct 16 '21 12:10 beholdr

I dont know if i'm doing something wrong... I'm trying the following way:

v-maska="{mask: '#*,##'}"

Dont seems to be working. I'm missing something?

wduandy avatar Oct 17 '21 07:10 wduandy

No, this should work if you have maska correctly initialized.

beholdr avatar Oct 18 '21 08:10 beholdr

The weird thing is that maska is working for another kind of pattern:

v-maska="['##%','#%', '###%']"

wduandy avatar Oct 18 '21 17:10 wduandy

It doesn't work for me also. I'm trying to find out what's wrong

marcoshmendes avatar Oct 26 '21 21:10 marcoshmendes

Could you create example of not working code in some sandbox?

beholdr avatar Oct 27 '21 07:10 beholdr