Actions on Custom Events

Stimulus does support custom events as actions:

<div class="slider" data-action="changed.zf.slider->controller-name#actionName"></div>

jQuery events are not supported though. If Zurb uses jQuery you have to delegate the events as custom events. I wrote about that in a previous post: Listening to jQuery events on Stimulus actions like `ajax:success`

3 Likes