You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No. The main idea is to allow text input to be masked (possibly in the same way as the date type)
Describe the solution you'd like
It would be nice to have the mask option on the text type or any other interesting type.
Describe alternatives you've considered
I wouldn't like to make things complicated so I have a simple and a complex solution:
Simple:
Something very similar to #241 but for every character. If it exceeds the format, simply append to the text.
Complex:
The Mask would become an array of regex. On render, changes the current value of the prompt would be matched against every element of the array. By order, the first matching regex would then mask the value of the prompt.
There would be no additional context. If I have the time I'll sure think of ways of doing this and try to make a pull request. Sorry for asking something without offering much.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
No. The main idea is to allow text input to be masked (possibly in the same way as the date type)
Describe the solution you'd like
It would be nice to have the mask option on the text type or any other interesting type.
Describe alternatives you've considered
I wouldn't like to make things complicated so I have a simple and a complex solution:
Simple:
Something very similar to #241 but for every character. If it exceeds the format, simply append to the text.
Complex:
The Mask would become an array of regex. On render, changes the current value of the prompt would be matched against every element of the array. By order, the first matching regex would then mask the value of the prompt.
A sample can be found at: https://text-mask.github.io/text-mask/
Additional context
There would be no additional context. If I have the time I'll sure think of ways of doing this and try to make a pull request. Sorry for asking something without offering much.
The text was updated successfully, but these errors were encountered: