x-mask: add support for zero padding
#3633
ajschmidt8
started this conversation in
3. Feature Ideas
Replies: 1 comment 3 replies
-
|
should this allow I think clarifying what the actual behavior you want is would help in understanding how to support it and even if x-mask is the right thing. If you just want to let the user type whatever and update it to be decimal when they are done, just a blur event handler would be enough. x-model="price" @blur="price = Number(price).toFixed(2)" |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It'd be nice if the
x-maskplugin supported zero padding for money.For instance, if a user types in
25,x-maskcould pad it to25.00.I'm happy to work on this if someone could provide some guidance.
It wasn't immediately clear to me how to implement this based on a cursory glance at the existing
x-maskcode.Beta Was this translation helpful? Give feedback.
All reactions