Skip to content

Commit

Permalink
Add example of subscribing to form validation event
Browse files Browse the repository at this point in the history
  • Loading branch information
haacked authored Apr 26, 2021
1 parent bc15a50 commit cef508d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,12 @@ v.addProvider('io', (value, element, params) => {
};
});
```

## Subscribing to Client Form Validation Event

```ts
cost form = document.getElementById('form');
form.addEventListener('validation', function (e) {
/* Check if form is valid here. */
});
```

0 comments on commit cef508d

Please sign in to comment.