renato-bohler / redux-form-input-masks

Input masking with redux-form made easy
https://bohler.dev/redux-form-input-masks/
MIT License
138 stars 10 forks source link

Add reverse attribute #54

Open wweellddeerr opened 6 years ago

wweellddeerr commented 6 years ago

Hello Renato, it is possible to add the reverse attribute like in jquery mask plugin?

https://igorescobar.github.io/jQuery-Mask-Plugin/docs.html

renato-bohler commented 6 years ago

Hey @wweellddeerr. The documentation for this mask plugin doesn't really explain what the reverse attribute does, and I've found no examples of it too. Could you explain a little more what is this reverse all about? Or maybe share an example, codesandbox, etc.?

Thanks!

wweellddeerr commented 6 years ago

Hi @renato-bohler, thank you for your availability. Sorry I did not check if the documentation had an appropriate example.

What I need is a right to left filling of the field. .____ .1 .__12 _.123 .1232 __1.2320 _12.3201 123.2010

In a such way that if the user change the focus with partially filling, I can automatically fill with zeros.

Thank you.

renato-bohler commented 6 years ago

This is a total valid feature. I'll put this on the roadmap, but it may take some time to release because I think it's not gonna be easy to implement.

Thanks for the feedback!

sourcecode911 commented 5 years ago

Hey i added the feature request to this one.

I need a config parameter on createNumberMask to filling from left to right.

Not : .0,00 00,01 00,12 01,20 12,00

Needed: .0,00 10,00 12,00 its not necessary to type zero's

Thanks. @renato-bohler