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

Add reverse attribute #54

Open
wweellddeerr opened this issue Jul 23, 2018 · 4 comments
Open

Add reverse attribute #54

wweellddeerr opened this issue Jul 23, 2018 · 4 comments

Comments

@wweellddeerr
Copy link

  • [ X ] Feature request

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link

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

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

3 participants