Reputation: 71
I am attempting to create a reusable backbone view that represents a select element, and supports the following:
I've seen a few different resources on this, such as
However neither of them seems to support a generalized object that fulfills both purposes - they seem to be hackish.
Does anyone have any advice on how to go about creating this? Or maybe a link to someone else's code that solves this problem elegantly?
Thanks
Upvotes: 1
Views: 1266
Reputation: 3727
I would recommend you to implement event aggreator this way. http://lostechies.com/derickbailey/category/backbone-eventbinder/
so you bind the change event on your select list inside the first view to a method that triggres the update in the other views.
Hope this helps
Upvotes: 1