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

🚀 - Support dynamic mask #1174

Open
splincode opened this issue Mar 28, 2024 · 0 comments
Open

🚀 - Support dynamic mask #1174

splincode opened this issue Mar 28, 2024 · 0 comments
Labels
feature New feature or request

Comments

@splincode
Copy link
Member

Which package(s) are relevant/related to the feature request?

@maskito/kit

Description

Dynamic mask automatically selects appropriate mask from provided array of masks. Mask with the largest number of fitting characters is selected considering provided masks order.

<input name="color" [maskito]="maskitoOptions" />
class Example {
 readonly maskitoOptions = [
   { mask: ['#', ...new Array(6).fill(/[0-9a-f]/i)] },
   { mask: /^rgb\((\d+),(\d+),(\d+)\)$/ },
 ];
}

What do you think?

@splincode splincode added the feature New feature or request label Mar 28, 2024
@github-project-automation github-project-automation bot moved this to 💡 Backlog in Taiga-family Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
No open projects
Status: 💡 Backlog
Development

No branches or pull requests

1 participant