Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Commit ca6536b

Browse files
author
John Cordeiro
authored
Update README.md with new validation methods
1 parent 4e218d3 commit ca6536b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Latest Version: [![Latest version](https://jitpack.io/v/Ilhasoft/data-binding-va
3636

3737
## Sample
3838

39-
<img width='380' src='https://raw.githubusercontent.com/Ilhasoft/data-binding-validator/master/screenshot.png'/>
39+
<img src="usageSample.gif" alt="...">
4040

4141
## Usage
4242

@@ -164,6 +164,10 @@ You can add custom error messages by using the same validation rule name and add
164164
app:validateDateMessage="@{@string/dateErrorMessage}" />
165165
```
166166

167+
### Validating ###
168+
169+
If you want to validate all the fields, you can simply call `validator.validate()`, to validate specific views you can call `validator.validate(view)` or `validator.validate(viewsList)`;
170+
167171
### Validation modes ###
168172

169173
The validation can be applied in two way, field by field or the whole form at once. By default, it's configured field by field, however, you can call `validator.enableFormValidationMode();` to enable the validation of the whole form.

0 commit comments

Comments
 (0)