You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 2, 2019. It is now read-only.
var columns = [...];
var collection = new Backbone.Collection(...);
// This does not work
var CustomGrid = Backgrid.Grid.extend({
columns: columns
, className: 'backgrid customBackgrid'
});
var grid = new CustomGrid({collection: collection})
However, it fails to render and only seems to work if I call the Backgrid.Grid() constructor directly and pass it all the arguments:
// This works
var grid = new Backgrid.Grid({
columns: columns
, className: 'backgrid customBackgrid'
, collection: collection
})
I have something like:
However, it fails to render and only seems to work if I call the
Backgrid.Grid()constructor directly and pass it all the arguments:What am I doing wrong?