Created
August 25, 2011 21:11
-
-
Save topherfangio/1171977 to your computer and use it in GitHub Desktop.
Quick example of how to use SC.TemplateCollection ItemViews
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyApp.ExampleCollectionView = SC.TemplateCollectionView.extend({ | |
}); | |
MyApp.MyButtonView = SC.Button.extend({ | |
mouseDown: function(evt) { | |
var id = this.getPath('parentView.content.id'); | |
MyApp.myController.sendAction('showDetail', id); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment