How to offer an input for only positive numbers without validation?
-
Hi,
I thought this might be useful for others. It’s a way to create a QInput, which will only take positive numbers.
https://codepen.io/smolinari/pen/gOYyjKp
Scott
-
@s-molinari What is the best solution for currency formatting?
Natively Quasar doesn’t have a solution yet?
I need to accept values like $ 100,00 / $ 1000,00 / $ 10.000,00 -
-
And you can still also have a validation rule, which you should have.
Scott
-
@patryckx check my sandbox currency formatter, you can replace the characters for ., prolly tweak the regular expression too. Its at src/components/base… https://codesandbox.io/s/0ybb3 sry cant check atm in mobile. mosuforge also has one using https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat
-
@metalsadman Thank you, I will check because I have this need in a project.
I have old solutions, but I don’t know if they are so efficient. -
@patryckx you can see output here https://0ybb3.sse.codesandbox.io/form-validations/external-vuelidate amount field, he also helped me on how i can use numeric pad on this in mobile.