called when validator inside it starts to validate
methods
validate(callback:function): validate all fields, call callback with isValid as parameter
reset: reset validation to initial state, used for form reset
forceValidate(fields:String[],callback:Function): validate specified fields, call callback with isValid as parameter. fields is component's name which is wrapped by Validator
Validator
Validator 's children must be one component which support trigger handler and value/name prop such as
props
name
type
default
description
rules
Object|Array
see https://github.com/yiminghe/async-validator .
for example: {type:'string',min:4},[{type:'string',whitespace:true,required:true},{validator:validateFn}]
trigger
String
onChange
when to validate
mixins
Validation.FieldMixin
provide the following methods:
setField
sync individual field which does not need validation
The npm package rc-form-validation receives a total of 10 weekly downloads. As such, rc-form-validation popularity was classified as not popular.
We found that rc-form-validation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.
Package last updated on 16 Nov 2015
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.
NIST's new password guidelines remove periodic changes and special character requirements, focusing on longer, more secure passwords for better authentication practices.