Skip to content

Instantly share code, notes, and snippets.

@jakobdamjensen
Created November 25, 2011 10:21
Show Gist options
  • Save jakobdamjensen/1393208 to your computer and use it in GitHub Desktop.
Save jakobdamjensen/1393208 to your computer and use it in GitHub Desktop.
{{#collection Mango.ProjectsGridView contentBinding="Mango.projectsController"}}
{{content.title}}
{{/collection}}
Mango.ProjectsGridView = SC.CollectionView.extend({
itemView: SC.View.extend({
mouseDown: function(evt) {
window.alert('You clicked on ' + this.get('content'));
}
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment