Skip to content

Commit

Permalink
Merge pull request #98 from lonix1/lonix1-patch-1
Browse files Browse the repository at this point in the history
docs: events
  • Loading branch information
dahlbyk authored Mar 5, 2024
2 parents 2c76d35 + 9d6d27d commit 5008fe3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ v.addProvider('io', (value, element, params) => {
});
```

## Controlling when validation occurs

By default, validation occurs immediately upon changes to form fields: on `input` for inputs and textareas, and on `change` for selects.

One can change to a different event by setting a field's `data-val-event` attribute. For example, one can use `data-val-event="blur"` to validate that field on the `blur` event.

## Subscribing to Client Form Validation Event

```ts
Expand Down

0 comments on commit 5008fe3

Please sign in to comment.