input-mask-android icon indicating copy to clipboard operation
input-mask-android copied to clipboard

Format Money Thousand Separator

Open SyntaxError001 opened this issue 7 years ago • 6 comments

Hi, good day! I have an inquiry about the formatter for Text Mask Input. All of the mask are working aside from the Money Format. I can't find a way to format money input. I want something to look like this:

1 12 123 1,234 12,345 123,456 1,234,567 12,345,678 123,456,789

Can you help me out about this issue? Please see attached picture below. Thank you so much in advance!

screen shot 2018-09-25 at 2 15 08 pm

SyntaxError001 avatar Sep 25 '18 06:09 SyntaxError001

Hey @SyntaxError001! Thanks for your question.

As a temporary solution you may try to use our ReversedMaskTextChangedListener with a [000] [000] [000] mask — though, the class is highly unstable. I didn't even mention it in the main README.

I know this is an extremely popular scenario, so I'm working on a solution to cover this case, too. My plans include issuing an update this week, so please stay tuned.

taflanidi avatar Oct 01 '18 18:10 taflanidi

Thank you so much @taflanidi!

Will wait for the update. 👍

SyntaxError001 avatar Oct 02 '18 01:10 SyntaxError001

Any update on this?

MRezaNasirloo avatar Apr 15 '19 12:04 MRezaNasirloo

@taflanidi Any other features we could look into to implement this functionality?

patrickpilch avatar Aug 22 '19 15:08 patrickpilch

I need this solution too. Any update?

gsbarbosa avatar Oct 17 '19 13:10 gsbarbosa

Please consider reading about RTL masks.

Also keep an eye on our changelog. While the work is still in progress — we haven't figured out digit grouping for decimal sums of money yet — the solution is already close.

In theory, the essential part for this functionality to work properly is a special affinity calculation strategy allowing to effectively switch between these two formats in RTL mode:

[000] [000] [000] EUR
[000] [000] [000]{,}[00] EUR

taflanidi avatar Oct 17 '19 16:10 taflanidi

Done.

taflanidi avatar Apr 11 '23 07:04 taflanidi