formsy-react-validations
v0.0.4
Published
validations rules for formsy-react npm package.
Downloads
102
Readme
formsy-react-validations
Validation rules for forms-react package.
Install package
$ npm install --save formsy-react-validations
List of rules:
- isDefaultRequiredValue (*)
- isExisty (*)
- matchRegexp (*)
- isUndefined (*)
- isEmptyString (*)
- isEmail (*)
- isUrl (*)
- isTrue (*)
- isFalse (*)
- isAlpha (*)
- isNumeric (*)
- isAlphanumeric (*)
- isInt (*)
- isFloat (*)
- isWords (*)
- isSpecialWords (*)
- isLength (*)
- equals (*)
- equalsField (*)
- maxLength (*)
- minLength (*)
- isGreaterThan
- isGreaterThanEqualTo
- isSmallerThan
- isSmallerThanEqualTo
- hasNumber
- hasAlpha
- hasSpecial
- isRequiredIf
(*) Extracted from formsy-react.
Usage
For example:
import attachValidationToFormsy from 'formsy-react-validations';
attachValidationToFormsy('isGreaterThan', 'isGreaterThanEqualTo', 'isSmallerThan', ...);
LICENSE
MIT