hotwired / stimulus

A modest JavaScript framework for the HTML you already have
https://stimulus.hotwired.dev/
MIT License
12.55k stars 420 forks source link

Support for input event #141

Closed jpic closed 6 years ago

jpic commented 6 years ago

Hello !

Is it possible to support the input event ?

Thanks again for making this really fun framework to use. We're building yourlabs/crudlfap with it ;)

skyksandr commented 6 years ago

Actually all native events supported.

Just do something like:

html:
<input data-action="input->your_controller#your_action">

your_controller.js:
...
your_action(event) {
  console.log(event)
}
jpic commented 6 years ago

Works amazing, thanks for sharing some of your insight.

Long live StimulusJS ;)