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
* <ahref="https://codesandbox.io/s/custom-function-further-control-when-providing-customfunc-yjwch">Custom function further control</a>(when providing ```customFunc```)
* <ahref="https://codesandbox.io/s/13qo2rqxjj">Phone and email validation example</a>(handled with ```customFunc```)
31
32
@@ -99,6 +100,10 @@ Tested on IE9+ and Chrome and Safari(10.0.3)
99
100
|~~**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
101
|**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
102
|**validationOption.msgOnSuccess**|**Opt**|**Str**|**Show your custom success message no matter what when it has error if it is provied.**|**""**|
|**asyncMsgObj.message**|**Opt**|**Str**|**(Server response) Your AJAX message. For instance, provide it when backend returns 'USERNAME ALREADY EXIST'**|**""**|
105
+
|**asyncMsgObj.showOnError**|**Opt**|**Bool**|**(Server response) Show AJAX error message or not.**|**true**|
106
+
|**asyncMsgObj.showOnSuccess**|**Opt**|**Bool**|**(Server response) Show AJAX success message or not.**|**false**|
// message: '', // Optional.[String].Default: "". (Server response) Your AJAX message. For instance, provide it when backend returns 'USERNAME ALREADY EXIST'
164
+
// showOnError: true, // Optional.[Bool].Default: true. (Server response) Show AJAX error message or not.
165
+
// showOnSuccess: false, // Optional.[Bool].Default: false. (Server response) Show AJAX success message or not.
|**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"**|
191
203
|**validationOption.msgOnError**|**Opt**|**Str**|**Show your custom error message no matter what when it has error if it is provied.**|**""**|
192
204
|**validationOption.msgOnSuccess**|**Opt**|**Str**|**Show your custom success message no matter what when it has error if it is provied.**|**""**|
|**asyncMsgObj.message**|**Opt**|**Str**|**(Server response) Your AJAX message. For instance, provide it when backend returns 'USERNAME ALREADY EXIST'**|**""**|
207
+
|**asyncMsgObj.showOnError**|**Opt**|**Bool**|**(Server response) Show AJAX error message or not.**|**true**|
208
+
|**asyncMsgObj.showOnSuccess**|**Opt**|**Bool**|**(Server response) Show AJAX success message or not.**|**false**|
// 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.
233
249
// 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.
// message: '', // Optional.[String].Default: "". (Server response) Your AJAX message. For instance, provide it when backend returns 'USERNAME ALREADY EXIST'
254
+
// showOnError: true, // Optional.[Bool].Default: true. (Server response) Show AJAX error message or not.
255
+
// showOnSuccess: false, // Optional.[Bool].Default: false. (Server response) Show AJAX success message or not.
|**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"**|
273
293
|**validationOption.msgOnError**|**Opt**|**Str**|**Show your custom error message no matter what when it has error if it is provied.**|**""**|
274
294
|**validationOption.msgOnSuccess**|**Opt**|**Str**|**Show your custom success message no matter what when it has error if it is provied.**|**""**|
|**asyncMsgObj.message**|**Opt**|**Str**|**(Server response) Your AJAX message. For instance, provide it when backend returns 'USERNAME ALREADY EXIST'**|**""**|
297
+
|**asyncMsgObj.showOnError**|**Opt**|**Bool**|**(Server response) Show AJAX error message or not.**|**true**|
298
+
|**asyncMsgObj.showOnSuccess**|**Opt**|**Bool**|**(Server response) Show AJAX success message or not.**|**false**|
// 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.
317
342
// 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.
// message: '', // Optional.[String].Default: "". (Server response) Your AJAX message. For instance, provide it when backend returns 'USERNAME ALREADY EXIST'
347
+
// showOnError: true, // Optional.[Bool].Default: true. (Server response) Show AJAX error message or not.
348
+
// showOnSuccess: false, // Optional.[Bool].Default: false. (Server response) Show AJAX success message or not.
|**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"** |
360
391
|**validationOption.msgOnError** |**Opt**|**Str** |**Show your custom error message no matter what when it has error if it is provied.**|**""** |
361
392
|**validationOption.msgOnSuccess** |**Opt**|**Str** |**Show your custom success message no matter what when it has error if it is provied.**|**""** |
|**asyncMsgObj.message** |**Opt**|**Str** |**(Server response) Your AJAX message. For instance, provide it when backend returns 'USERNAME ALREADY EXIST'**|**""** |
395
+
|**asyncMsgObj.showOnError** |**Opt**|**Bool** |**(Server response) Show AJAX error message or not.**|**true** |
396
+
|**asyncMsgObj.showOnSuccess** |**Opt**|**Bool** |**(Server response) Show AJAX success message or not.**|**false** |
// 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.
417
451
// 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.
// message: '', // Optional.[String].Default: "". (Server response) Your AJAX message. For instance, provide it when backend returns 'USERNAME ALREADY EXIST'
456
+
// showOnError: true, // Optional.[Bool].Default: true. (Server response) Show AJAX error message or not.
457
+
// showOnSuccess: false, // Optional.[Bool].Default: false. (Server response) Show AJAX success message or not.
|**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
505
|**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
506
|**validationOption.msgOnSuccess** |**Opt**|**Str** |**Show your custom success message no matter what when it has error if it is provied.**|**""** |
|**asyncMsgObj.message** |**Opt**|**Str** |**(Server response) Your AJAX message. For instance, provide it when backend returns 'USERNAME ALREADY EXIST'**|**""** |
509
+
|**asyncMsgObj.showOnError** |**Opt**|**Bool** |**(Server response) Show AJAX error message or not.**|**true** |
510
+
|**asyncMsgObj.showOnSuccess** |**Opt**|**Bool** |**(Server response) Show AJAX success message or not.**|**false** |
// message: '', // Optional.[String].Default: "". (Server response) Your AJAX message. For instance, provide it when backend returns 'USERNAME ALREADY EXIST'
568
+
// showOnError: true, // Optional.[Bool].Default: true. (Server response) Show AJAX error message or not.
569
+
// showOnSuccess: false, // Optional.[Bool].Default: false. (Server response) Show AJAX success message or not.
0 commit comments