Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

add custom validators #40

Open
2 of 5 tasks
galki opened this issue Mar 29, 2018 · 1 comment
Open
2 of 5 tasks

add custom validators #40

galki opened this issue Mar 29, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@galki
Copy link
Owner

galki commented Mar 29, 2018

  • isMinLength
  • isMaxLength
  • isExactLength
  • isMinValue
  • isMaxValue
@galki galki added the enhancement New feature or request label Mar 29, 2018
@galki galki self-assigned this Mar 29, 2018
@voletiswaroop
Copy link
Collaborator

We can achieve isMinLength & isMaxLenght by using following code:
Ex 1:
let length = [{ isLength: { min: 2, max: 50 } }];
data-validators="isLength"

Ex 2:
inputProps={{minLength: 1, maxLength: 10}}

@voletiswaroop voletiswaroop self-assigned this Jan 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants