Skip to content

Commit a6d8c5b

Browse files
authored
Merge pull request #22 from humarh-dharnarh/patch-1
Fixed typo error
2 parents ae70a3c + 73d1f02 commit a6d8c5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ Once you have extended the class a set of usefull methods become avaiblable :
6969
|this.validate(state_rules)|Boolean|This method ensures form validation within the object passed in argument.The object should be a representation of the React component state. The first graph level matches with the React state variables.The second level matches with the existing validation rules.|
7070
|this.isFormValid()|Boolean|This method indicates if the form is valid and if there is no errors.|
7171
|this.isFieldInError(fieldName)|Boolean|This method indicates if a specific field is in error. The field name will matches with your React state|
72-
|this.getErrorMessages(separator)|String|This method retruns the different error messages bound to your React state. The argument is optional, by default the separator is a \n. Under the hood a join method is used.|
73-
|this.getErrorsInField(fieldName)|Array|This method retruns the error messages bound to the specified field. The field name will match with your React state. it returns an empty array if no error was bound to the filed.|
72+
|this.getErrorMessages(separator)|String|This method returns the different error messages bound to your React state. The argument is optional, by default the separator is a \n. Under the hood a join method is used.|
73+
|this.getErrorsInField(fieldName)|Array|This method returns the error messages bound to the specified field. The field name will match with your React state. it returns an empty array if no error was bound to the filed.|
7474

7575
The library also contains a [defaultMessages.js](./defaultMessages.js) file wich includes the errors label for a language locale.
7676
You can override this file via the component React props :

0 commit comments

Comments
 (0)