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

Allow for multi character placeholder #62

Open
1 task done
cupojoe opened this issue Dec 13, 2018 · 1 comment
Open
1 task done

Allow for multi character placeholder #62

cupojoe opened this issue Dec 13, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@cupojoe
Copy link

cupojoe commented Dec 13, 2018

What are you reporting?

  • Feature request

What is the current behavior?

Currently, you are only allowed a one character placeholder, which assumes the mask is homogenous. This helps with the format of the field, but not with the semantics of the data.

What is the expected behavior?

It would be great to be able to specify a placeholder with the same format as the pattern:

{
...
  pattern: '99/99/9999',
  placeholder: 'MM/DD/YYYY',
...
}

What's your environment?

Version: 1.3.0

@renato-bohler renato-bohler added the enhancement New feature or request label Dec 13, 2018
@krystian-panek-vmltech
Copy link

I am also struggling with the problem as the mask looks like

  • (99)9999999 - 7 digits after ))
  • (99)99999999 - 8 digits after ))
  • (99)999999999 - 9 digits after ))

in other words, I need to have a mask with variable-length digits/part... and I suppose it is not possible to have right now?

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

No branches or pull requests

3 participants