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

Create a plugin to integrate with input masking #2705

Open
2 tasks done
Eonasdan opened this issue Nov 1, 2022 · 1 comment
Open
2 tasks done

Create a plugin to integrate with input masking #2705

Eonasdan opened this issue Nov 1, 2022 · 1 comment

Comments

@Eonasdan
Copy link
Owner

Eonasdan commented Nov 1, 2022

Prerequisites

Proposal

In particular with the custom date formatting it would be useful to provide some hooks or something to work with an input masking library. This one might work as they have an example with momentjs and that shouldn't be difficult to replicate for use in the picker.

Likely the plugin would provide maskOptions property bag and in particular the format/parse methods

Motivation and context

Without masking, users can provide whatever they want. A mask library integration might be helpful.

@lenamtl
Copy link

lenamtl commented Feb 21, 2023

I'm using this input mask (this is very flexible with regex and the ability to set mask based on condition)
vanilla JS or jQuery version
https://github.com/RobinHerbots/Inputmask

Here is my working demo
https://jsfiddle.net/lenamtl/26x3vt41/

@Eonasdan Eonasdan moved this from 📋 Backlog to 🔖 Ready in Tempus Dominus Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants