Events in CompositeView

Learn how to use events to highlight rows in the tables created using CompositeViews in Marionette.

Using events

As we saw in the previous lessons, we can define events and their associated handlers within views.

Let’s use this ability to toggle highlighting on the rows that get clicked by toggling Bootstrap’s warning class to the appropriate tr element:

Get hands-on with 1200+ tech skills courses.