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
[Custom Error Message Guid(can be multiple locales)](#CustomErrorMessage)
34
+
[Custom Error Message Guid(can be multiple locales)](#custom-error-message)
35
35
36
36
[Phone and email validation example](#phone-email-validation-example)(Since the phone and email validation are no longer handled internally after v1.4.0.)
37
37
@@ -85,7 +85,7 @@ Tested on IE9+ and Chrome and Safari(10.0.3)
85
85
|**<aname="customFunc"></a>validationOption.customFunc**|**Opt**|**Func**|**Custom function. Returns true or err message.**|**none**|
|**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](#CustomErrorMessage)' section, which provides the extensibility for your own locale.**|**"en-US"**|
88
+
|**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"**|
89
89
|~~**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"**~~|
90
90
|**validationOption.msgOnError**|**Opt**|**Str**|**Show your custom error message no matter what when it has error if it is provied.**|**""**|
91
91
|**validationOption.msgOnSuccess**|**Opt**|**Str**|**Show your custom success message no matter what when it has error if it is provied.**|**""**|
|**validationOption.check**|**Opt**|**Bool**|**To determin if you need to validate.**|**true**|
178
178
|**validationOption.required**|**Opt**|**Bool**|**To determin if it is a required field.**|**true**|
179
179
|**validationOption.showMsg**|**Opt**|**Bool**|**To determin display the error message or not.**|**true**|
180
-
|**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](#CustomErrorMessage)' section, which provides the extensibility for your own locale.**|**"en-US"**|
180
+
|**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"**|
181
181
|**validationOption.msgOnError**|**Opt**|**Str**|**Show your custom error message no matter what when it has error if it is provied.**|**""**|
182
182
|**validationOption.msgOnSuccess**|**Opt**|**Str**|**Show your custom success message no matter what when it has error if it is provied.**|**""**|
|**validationOption.check**|**Opt**|**Bool**|**To determin if you need to validate.**|**true**|
260
260
|**validationOption.required**|**Opt**|**Bool**|**To determin if it is a required field.**|**true**|
261
261
|**validationOption.showMsg**|**Opt**|**Bool**|**To determin display the error message or not.**|**true**|
262
-
|**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](#CustomErrorMessage)' section, which provides the extensibility for your own locale.**|**"en-US"**|
262
+
|**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"**|
263
263
|**validationOption.msgOnError**|**Opt**|**Str**|**Show your custom error message no matter what when it has error if it is provied.**|**""**|
264
264
|**validationOption.msgOnSuccess**|**Opt**|**Str**|**Show your custom success message no matter what when it has error if it is provied.**|**""**|
|**validationOption.check** |**Opt**|**Bool**|**To determin if you need to validate.**|**true** |
347
347
|**validationOption.required** |**Opt**|**Bool**|**To determin if it is a required field.**|**true** |
348
348
|**validationOption.showMsg** |**Opt**|**Bool**|**To determin display the error message or not.**|**true** |
349
-
|**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](#CustomErrorMessage)' section, which provides the extensibility for your own locale.**|**"en-US"** |
349
+
|**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"** |
350
350
|**validationOption.msgOnError** |**Opt**|**Str** |**Show your custom error message no matter what when it has error if it is provied.**|**""** |
351
351
|**validationOption.msgOnSuccess** |**Opt**|**Str** |**Show your custom success message no matter what when it has error if it is provied.**|**""** |
|**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](#CustomErrorMessage)' section, which provides the extensibility for your own locale.**|**"en-US"** |
455
+
|**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"** |
456
456
|**validationOption.msgOnError** |**Opt**|**Str** |**Show your custom error message no matter what when it has error if it is provied.**|**""** |
457
457
|**validationOption.msgOnSuccess** |**Opt**|**Str** |**Show your custom success message no matter what when it has error if it is provied.**|**""** |
0 commit comments