Stimulating Events
summary
Shows three live‑coding examples using Rails + Stimulus JS and Tailwind CSS to build a working dropdown that highlights items, updates button text, toggles visibility, and shows check marks. Demonstrates controllers, actions, targets, values, lifecycle callbacks, refactors a bulky dropdown into per‑item list item controllers that communicate via custom events, uses webpack dev server for instant feedback, and ends with a refactor that makes the UI simpler and reliable.
AI-written summary · about
chapters (9)
- 0:00Start
- 2:42What Is Stimulus
- 4:03Tailwind Css
- 8:19Modeling Console Driven Development
- 15:08The Target
- 16:21Hide the Drop Down List
- 17:42Toggle List Function
- 28:57Custom Events
- 29:16To Define a Custom Event








