Skip to content

Commit a08391d

Browse files
author
Edward Xiao
committed
no message
1 parent f4d274b commit a08391d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

example/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,12 +1169,12 @@ class Index extends Component {
11691169
// regMsg: 'failed in reg.test(${value})', // Optional.[String].Default: "". Custom regex error message.
11701170
// 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.
11711171
// 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.
1172-
customFunc: res => { // Optional.[Func].Default: none. Custom function. Returns true or err message
1173-
if (res != 'banana') {
1174-
return 'Description cannot be other things but banana';
1175-
}
1176-
return true;
1177-
}
1172+
// customFunc: res => { // Optional.[Func].Default: none. Custom function. Returns true or err message
1173+
// if (res != 'banana') {
1174+
// return 'Description cannot be other things but banana';
1175+
// }
1176+
// return true;
1177+
// }
11781178
}}
11791179
// asyncMsgObj={{
11801180
// error: false, // Optional.[Bool].Default: false. (Server response) Backend validation result.

0 commit comments

Comments
 (0)