Stimulus Quick Reference
Check out some quick references regarding Stimulus.
We'll cover the following...
We'll cover the following...
Stimulus is small, but the conventions need to be hit exactly for it to work. Therefore, a quick reference table helps a lot. The basics of Stimulus can fit in the simple table that follows, with the naming conventions mimicking the expected case of the value.
Basics of Stimulus
Item | Attribute | Naming Convention |
Controller |
| controller-name |
Action |
| event->controller-name#methodName |
Target |
| targetName |
Value |
| value |
Class |
| value |
Some notes on semantics:
- A controller declared as
controller-name
assumes the existence of a fileapp/packs/controller/controller_name_controller