ocadotechnology / hexagonjs

A modular, themable collection of components for modern browsers
https://www.hexagonjs.io
Apache License 2.0
51 stars 15 forks source link

Form: add ability to listen to changes for any field #561

Open charlieTheBotDev opened 4 years ago

charlieTheBotDev commented 4 years ago

Context

I have a form that should conditionally enable/disable the submit button. Currently I have to add individual handlers to every field to trigger a validation function. It would be great to have a form.on('change', ...) event that is called every time any field is updated.