Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to ALLOW typing decimals #35

Open
felipenmoura opened this issue Feb 23, 2021 · 1 comment
Open

Option to ALLOW typing decimals #35

felipenmoura opened this issue Feb 23, 2021 · 1 comment

Comments

@felipenmoura
Copy link

This was almost perfect for what I needed...except my client needs to type in the cents and needs that mask to show the separator and cents while users type.

If the user types 12345678 it would (in pt-BR) show while typing: 123.456,78.

Is there any feature or option to make that possible?
Thanks.

@moisesbaddini
Copy link

There is an example of how to format by changing the comma to period. When entering the value, however, it is necessary to force typing of the comma to separate cents.


Existe um exemplo de como mudar as formatações nos demos (seção Change in characters) que troca justamente a vírgula por ponto, para uso com R$:
decimalCharacter=","
digitGroupSeparator="."

Lembrando que é necessário forçar o uso da vírgula , portanto, o valor a ser digitado é 123456,78, caso contrário ele entende como um valor inteiro , com zeros nos centavos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants