Flake
Flake

Reputation: 1406

nested child view event LayoutView Marionette

Below is the hierarchy of my LayoutView
LayoutView > Region > CollectionView > ItemView > checkbox

If I want to listen to change event of checkbox at LayoutView level, should I listen and trigger the event at each level or is there a shorter way of implementing the same.

Upvotes: 1

Views: 1100

Answers (1)

slinhart
slinhart

Reputation: 572

Sounds like what you want is childEvents in your LayoutView. http://marionettejs.com/docs/v2.4.2/marionette.layoutview.html#layoutview-childevents

And just trigger your event in your child view like normal.

Upvotes: 2

Related Questions