Show the before and after implementation of table filtering with the new modest js framework named stimulus
We'll focus on a simple page with a table and filter capability.
I'll break this down into 2 steps:
- Implementation without Stimulus
- Implementation with Stimulus
To accomplish this part I created a simple project. There are 2 files that are involved:
Here I am demonstrating the filtering of table rows when a user presses enter.
There are 3 files that are involved:
Not much to say about this file, as it is the basic wiring needed as the entry-point for Stimulus use.
Here I am demonstrating the conversion into Stimulus from original CoffeeScript.