4

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

Flexo
  • 87,323
  • 22
  • 191
  • 272
Hellblazer
  • 779
  • 5
  • 10

1 Answers1

10

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
    })
);
David Riccitelli
  • 7,491
  • 5
  • 42
  • 56
Hellblazer
  • 779
  • 5
  • 10