Skip to content

[DataModel] Expose value changes as a DOM event to react with Action #302

Description

@titouanmathis

This can be useful to trigger other behaviors when working with forms. Another solution would be to emit a custom event on the DataBind component when the value changes, allowing us to react to it with the Action component.

<input type="text" 
  data-component="DataModel Action"
  data-option-on:custom-input="console.log('input has changed')"
  value="...">

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions