Created
October 21, 2015 14:15
-
-
Save isnifer/fce9ce4115e80000a2f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validators={[ | |
{ | |
validator(value, params) { | |
if (value) { | |
return Promise.resolve(); | |
} | |
return Promise.reject(params.message); | |
}, | |
params: { | |
message: 'Field is required' | |
} | |
} | |
]}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment