Skip to content

Commit 4515502

Browse files
author
Edward Xiao
authored
Update README.md
1 parent 689346f commit 4515502

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ import 'react-inputs-validation/lib/react-inputs-validation.min.css';
173173
|customStyleOptionListItem | Opt | Obj | | {} |
174174
|**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** |
175175
|**onChange** |**Req.**|**Func** |**(val, e) => {}. Will return the value.**|**(val, e)=>{}** |
176-
|onFocus |*Opt.* |Func | |none |
177-
|onClick |*Opt.* |Func | |none |
176+
|onFocus |Opt |Func | |none |
177+
|onClick |Opt |Func | |none |
178178
|**validationOption** |**Opt**|**obj** |**validationOption object, see below**|**{}** |
179179
|**validationOption.name** |**Opt**|**Str** |**To display in the Error message. i.e Please enter your ${name}.**|**""** |
180180
|**validationOption.check** |**Opt**|**Bool**|**To determin if you need to validate.**|**true** |
@@ -242,7 +242,7 @@ import 'react-inputs-validation/lib/react-inputs-validation.min.css';
242242
|id | Opt | Str | | "" |
243243
|name | Opt | Str | | "" |
244244
|value | Opt | Str | | "" |
245-
|**checked** |**Req.**|**Bool**|**Recommend using the value returned from ```onChange``` callback, which is ```isChecked```.** |**false** |
245+
|**checked** |**Req**|**Bool**|**Recommend using the value returned from ```onChange``` callback, which is ```isChecked```.** |**false** |
246246
|disabled | Opt | Bool | | false |
247247
|**validate** |**Opt**|**Bool**|**If you have a submit button and trying to validate all the inputs of your form at once, toggle it to true, then it will validate the field and pass the result via the "validationCallback" you provide.**|**false** |
248248
|**validationCallback** |**Opt**|**Func**|**Return the validation result.**|**none** |
@@ -252,11 +252,11 @@ import 'react-inputs-validation/lib/react-inputs-validation.min.css';
252252
|customStyleWrapper | Opt | Obj | | {} |
253253
|customStyleInputBox | Opt | Obj | | {} |
254254
|customStyleContainer | Opt | Obj | | {} |
255-
|**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** |
256-
|**onChange** |**Req.**|**Func** |**(isChecked, e) => {}. Will return the value.**|**(val, e)=>{}** |
257-
|onFocus |*Opt.* |Func | |none |
258-
|onClick |*Opt.* |Func | |none |
259-
|**labelHtml** |*Req.* |Html | |none |
255+
|**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** |
256+
|**onChange** |**Req**|**Func** |**(isChecked, e) => {}. Will return the value.**|**(val, e)=>{}** |
257+
|onFocus |Opt |Func | |none |
258+
|onClick |Opt |Func | |none |
259+
|**labelHtml** |Req |Html | |none |
260260
|**validationOption** |**Opt**|**obj** |**validationOption object, see below**|**{}** |
261261
|**validationOption.name** |**Opt**|**Str** |**To display in the Error message. i.e Please enter your ${name}.**|**""** |
262262
|**validationOption.check** |**Opt**|**Bool**|**To determin if you need to validate.**|**true** |
@@ -274,7 +274,7 @@ import 'react-inputs-validation/lib/react-inputs-validation.min.css';
274274
id={'agreement'} //Optional.[String].Default: "". Input ID.
275275
name={'agreement'} //Optional.[String].Default: "". Input name
276276
value={agreement} //Required.[String].Default: "".
277-
checked={isAgreementChecked} //Optional.[Bool].Default: false.
277+
checked={isAgreementChecked} //Required.[Bool].Default: false.
278278
disabled={false} //Optional.[Bool].Default: false.
279279
validate={validate} //Optional.[Bool].Default: false. If you have a submit button and trying to validate all the inputs of your form at once, toggle it to true, then it will validate the field and pass the result via the "validationCallback" you provide.
280280
validationCallback={res =>

0 commit comments

Comments
 (0)