How to automatically add thousands separators during input? #395
Replies: 1 comment
-
Hi, you can use the following options in this case:
Vuetify 3 example: https://stackblitz.com/edit/vue-currency-input-vuetify-3-dh7gm2?file=src%2Fcomponents%2FVCurrencyField.vue |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi
I would like to use this component to be able to format the input for a currency right when the user puts in data (according to the app locale) because Vuetify (the framework that i use for my app) doesn't provide such functionalitry.
So when the user with the "de" locale puts in 5000, this should be displayed as 5.000
If a user with the "en" locale puts in 5000, this should be displayed as 5,000
The key here is that its displayed on the fly, in all examples that i found it will only be converted if the user clicks somewhere else but on the input field
No fraction should be displayed and the v-model should be an integer - also no negative values should be allowed
How can this be achieved?
Best,
Thomas
Beta Was this translation helpful? Give feedback.
All reactions