Skip to content

Instantly share code, notes, and snippets.

@Ky6uk
Created November 7, 2014 10:55
Show Gist options
  • Save Ky6uk/d9ec920e52a420323747 to your computer and use it in GitHub Desktop.
Save Ky6uk/d9ec920e52a420323747 to your computer and use it in GitHub Desktop.
var LunRowView = Marionette.ItemView.extend({
tagName: 'tr',
template: _.template('<td>some content</td>')
});
var CollectionView = Marionette.CollectionView.extend({
el: 'raid-row-selector',
childView: LunRowView,
attachHtml: function(collectionView, childView) {
collectionView.$el.after(childView.el);
}
});
var view = new CollectionView({
collection: LunsCollectionForThisRaid
});
view.render();
// view.collection.add(LunModel1)
// view.collection.add(LunModel2)
// view.collection.add(LunModel3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment