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 input masks #26

Open
ddjerqq opened this issue Mar 6, 2024 · 3 comments
Open

Add input masks #26

ddjerqq opened this issue Mar 6, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@ddjerqq
Copy link
Owner

ddjerqq commented Mar 6, 2024

wiki

"e.g. When entering into a text box a phone number on a data capture form, in the format "(111) 111 1111" the area code brackets, the space between the number and the area code will automatically be placed in."

@ddjerqq ddjerqq added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Mar 6, 2024
@ddjerqq ddjerqq self-assigned this Mar 6, 2024
@ddjerqq
Copy link
Owner Author

ddjerqq commented Mar 6, 2024

@rekabis
Copy link

rekabis commented Mar 6, 2024

Most input masks for forms leverage jQuery. Some are better than others. It has been a while since I last used them in a project so I am not going to point to any references, but YMMV.

I would honestly recommend trying to build this in without jQuery, using a base library written in standard JS for functionality and then letting others create their own input masks for their own needs. This will likely help avoid a dependency on jQuery, which can be quite a moving target. You can always include the usual suspects for convenience’s sake (phone, postal code, etc.), but most input mask libraries allow you to custom-create new masks on your own anyhow.

@ddjerqq ddjerqq added this to the v2.1.0 milestone Mar 8, 2024
@ddjerqq
Copy link
Owner Author

ddjerqq commented Apr 22, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants