Skip to content Skip to sidebar Skip to footer

Implementing A Master View With Multiple Collections. Backbone.js

EDIT my humble mockup of what I want to implement I have defined such a view: define(['jquery', 'underscore', 'backbone', 'text!_templates/gv_container.html', 'bootstrap/bootstr

Solution 1:

I would recommend to create a view for each model. You may create a abstract wich holds the shared stuff like table creation. Each view extends your abstract instead of Backbone.View.

var myAbstract = Backbone.View.extend({...})
var productsView = myAbstract.extend({...})

Then create a view, handling the wrapper (Tabs).

Example: http://jsfiddle.net/DC7rN/

Post a Comment for "Implementing A Master View With Multiple Collections. Backbone.js"