-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
Is it possible to use a variable for validation? #55
Comments
Yes, it's possible. You just have to enclose it into another function. example: {
between (value) {
return between(this.variable, 400)(value)
}
} |
Not working! |
@Frizi what is maxLength () {
return maxLength(this.countProp)
} |
@ChrisRobston you can do that like this validations () {
return {
textfieldValue: {
required,
maxLength: maxLength(this.countProp)
}
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can I use a variable to validate? See example below:
The text was updated successfully, but these errors were encountered: