This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
Improvements on Events API #234
Open
Description
Is your feature request related to a problem? Please describe.
Extend current info available through events + adding more granularity on individual events to the parent container
Describe the solution you'd like
- Events API Changes (global):
@valid
will return the current status of the form no matter if validation was forced or not@force
will return if the current form validation was forced or not@submit
will remain the same@error
will return an object with all control errors no matter if submit event was triggered (for this option, see@submit-error
)@submit-error
: will be triggered only if form is submitted and it's invalid@touch
: will return an object with all controls that havetouched
as true.@dirty
: will return an object with all controls that havedirty
as true.
- Individual Events (new)
@input-change
: will be triggered when a control value was modified and it will return both control name and value@input-focus
: will be triggered when a control is focus and it will return both control name and touched property@input-blur
: will be triggered when a control is focus and it will return both control name and touched property@input-validate
: will be triggered when a control is validated and it will return both control name and valid & errors