Skip to content

Commit

Permalink
docs: events
Browse files Browse the repository at this point in the history
Add missing info re field validation events
  • Loading branch information
lonix1 authored Mar 5, 2024
1 parent 2c76d35 commit 9d6d27d
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 9d6d27d

Please sign in to comment.