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 validation option to text input #1222

Open
viktoraronfarkas opened this issue Aug 19, 2024 · 0 comments · May be fixed by #1240
Open

Add validation option to text input #1222

viktoraronfarkas opened this issue Aug 19, 2024 · 0 comments · May be fixed by #1240
Assignees
Labels
enhancement New feature or request itemfilter

Comments

@viktoraronfarkas
Copy link
Collaborator

Add a custom regex validation option to the text type filter.
For example
{ keys: ["title", "themes"], title: "Search", type: "text", placeholder: "Type Something...", expanded: true, validation: { pattern: /^[a-z\d]{5,12}$/i, message: "Must be between 5 and 12 characters long!", } },

@viktoraronfarkas viktoraronfarkas self-assigned this Aug 19, 2024
@viktoraronfarkas viktoraronfarkas added the enhancement New feature or request label Aug 19, 2024
@silvester-pari silvester-pari linked a pull request Sep 25, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request itemfilter
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant