Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Improvements on Events API #234

Open
alvarosabu opened this issue Feb 8, 2021 · 0 comments
Open

Improvements on Events API #234

alvarosabu opened this issue Feb 8, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request feature

Comments

@alvarosabu
Copy link
Collaborator

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 have touched as true.
    • @dirty: will return an object with all controls that have dirty 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
@alvarosabu alvarosabu added enhancement New feature or request feature labels Feb 8, 2021
@alvarosabu alvarosabu self-assigned this Feb 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request feature
Projects
None yet
Development

No branches or pull requests

1 participant