I have a view that has extensible / compressible content that I would like to switch by clicking on a table row. Prior to pre1.0, I had this in a template:
<tr {{action "expand"}}>
which was previously handled on my view:
App.ContentRowView = Em.View.extend({ templateName: 'ember/templates/content/row', expand: function() { this.set('isExpanded', !this.get('isExpanded')); }, isExpanded: false });
However, after upgrading to version 1.0, the action is now transmitted directly by the router. This makes sense in many situations, but in this case, the extension is indeed a concern. I tried just replacing this with a click event handler with no luck.
Is there any best practice on how to handle a view-related event like this with pre1.0?
outside2344
source share