Hellblazer
Hellblazer

Reputation: 819

Backgrid integration

How I would use backgrid within a backbone.marionette application?

Upvotes: 4

Views: 1840

Answers (1)

Hellblazer
Hellblazer

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

Related Questions