You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ Tested on IE9+ and Chrome and Safari(10.0.3)
81
81
|**onBlur**|**Opt**|**Func**|**In order to validate the value on blur, you MUST provide a function, even if it is an empty function. Missing this, the validation on blur will not work.**|**none**|
82
82
|onFocus | Opt | Func || none |
83
83
|onClick | Opt | Func || none |
84
-
|onKeyUp | Opt | Func || none |
84
+
|onKeyUp | Opt | Func |By providing ```onKeyUp```, the component will perform the checking every time when user types.| none |
85
85
|**validationOption**|**Opt**|**obj**|**validationOption object, see below**|**{}**|
86
86
|**validationOption.name**|**Opt**|**Str**|**To display in the Error message. i.e Please enter your ${name}.**|**""**|
87
87
|**validationOption.check**|**Opt**|**Bool**|**To determin if you need to validate.**|**true**|
@@ -97,7 +97,7 @@ Tested on IE9+ and Chrome and Safari(10.0.3)
|**validationOption.locale**|**Opt**|**Str**|**For error message display. Current options are ['zh-CN', 'en-US']; Default is 'en-US'. If your are looking for more options, you can take a look at '[window.REACT_INPUTS_VALIDATION](#custom-error-message)' section, which provides the extensibility for your own locale.**|**"en-US"**|
99
99
|~~**validationOption.phoneCountry**~~|~~**Opt**~~|~~**Str**~~|~~**Useful when the validationOption['type'] is phone. Check if the phone number matchs en-US phone number format.**~~ <br><br>**No longer support after v1.4.0. For phone or email address validation please reffer to '[Phone and email validation example](#phone-email-validation-example)'**|~~**"en-US"**~~|
100
-
|**validationOption.msgOnError**|**Opt**|**Str**|**Show your custom error message no matter what when it has error if it is provied.**|**""**|
100
+
|**validationOption.msgOnError**|**Opt**|**Str**|**Show your custom error message no matter what(except the message from customFunc) when it has error if it is provied.**|**""**|
101
101
|**validationOption.msgOnSuccess**|**Opt**|**Str**|**Show your custom success message no matter what when it has error if it is provied.**|**""**|
// locale: 'en-US', //Optional.[String].Default: "en-US". For error message display. Current options are ['zh-CN', 'en-US']; Default is 'en-US'. If your are looking for more options, you can take a look at 'window.REACT_INPUTS_VALIDATION' section, which provides the extensibility for your own locale.
147
-
// msgOnError: "Your custom error message if you provide the validationOption['msgOnError']", //Optional.[String].Default: "" Show your custom error message no matter what when it has error if it is provied.
147
+
// msgOnError: "Your custom error message if you provide the validationOption['msgOnError']", //Optional.[String].Default: "" Show your custom error message no matter what(except the message from customFunc) when it has error if it is provied.
148
148
// msgOnSuccess: "Your custom success message if you provide the validationOption['msgOnSuccess']. Otherwise, it will not show, not even green border.", //Optional.[String].Default: "". Show your custom success message no matter what when it has error if it is provied.
149
149
// customFunc: res => { //Optional.[Func].Default: none. Custom function. Returns true or err message
|**onBlur** |**Opt**|**Func**|**In order to validate the value on blur, you MUST provide a function, even if it is an empty function. Missing this, the validation on blur will not work.**|**none** |
450
450
|onFocus | Opt | Func | | none |
451
451
|onClick | Opt | Func | | none |
452
-
|onKeyUp | Opt | Func | | none |
452
+
|onKeyUp | Opt | Func | By providing ```onKeyUp```, the component will perform the checking every time when user types. | none |
453
453
|**validationOption** |**Opt**|**obj** |**validationOption object, see below**|**{}** |
454
454
|**validationOption.name** |**Opt**|**Str** |**To display in the Error message. i.e Please enter your ${name}.**|**""** |
455
455
|**validationOption.check** |**Opt**|**Bool**|**To determin if you need to validate.**|**true** |
|**validationOption.locale** |**Opt**|**Str** |**For error message display. Current options are ['zh-CN', 'en-US']; Default is 'en-US'. If your are looking for more options, you can take a look at '[window.REACT_INPUTS_VALIDATION](#custom-error-message)' section, which provides the extensibility for your own locale.**|**"en-US"** |
466
-
|**validationOption.msgOnError** |**Opt**|**Str** |**Show your custom error message no matter what when it has error if it is provied.**|**""** |
466
+
|**validationOption.msgOnError** |**Opt**|**Str** |**Show your custom error message no matter what(except the message from customFunc) when it has error if it is provied.**|**""** |
467
467
|**validationOption.msgOnSuccess** |**Opt**|**Str** |**Show your custom success message no matter what when it has error if it is provied.**|**""** |
// msgOnError: "Your custom error message if you provide the validationOption['msgOnError']", //Optional.[String].Default: "". Show your custom error message no matter what when it has error if it is provied.
513
+
// msgOnError: "Your custom error message if you provide the validationOption['msgOnError']", //Optional.[String].Default: "". Show your custom error message no matter what(except the message from customFunc) when it has error if it is provied.
514
514
// msgOnSuccess: "Your custom success message if you provide the validationOption['msgOnSuccess']. Otherwise, it will not show, not even green border.", //Optional.[String].Default: "". Show your custom success message no matter what when it has error if it is provied.
515
515
// customFunc: res => { //Optional.[Func].Default: none. Custom function. Returns true or err message
0 commit comments