Skip to content

Commit

Permalink
trigger events on validation
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK committed Dec 15, 2021
1 parent a7ba199 commit 9597a41
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
11 changes: 11 additions & 0 deletions demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,16 @@ protected function _configureDataHandlers()
</div>
<br/>
<?php endif; ?>

<script>
document.addEventListener('form-handler-validation', function (e)
{
console.log('handler', e.detail);
});
document.addEventListener('form-validation', function (e)
{
console.log('form', e.detail);
});
</script>
</body>
</html>
Loading

0 comments on commit 9597a41

Please sign in to comment.