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
Open

Add validation option to text input #1222

viktoraronfarkas opened this issue Aug 19, 2024 · 0 comments
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!", } },

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

No branches or pull requests

1 participant