Reputation: 819
How I would use backgrid within a backbone.marionette application?
Upvotes: 4
Views: 1840
Reputation: 819
It's as simple as it looks. Just add the Backgrid view to any region:
MyApp.addRegions({
someRegion: "#some-div"
});
var columns ....
var userList ....
MyApp.someRegion.show(
new Backgrid.Grid({
columns : columns,
collection : userList
})
);
Upvotes: 10