javascript - Multiple Collection Instances for a single view? -
i'm working on app, in there 2 panels - left , right panel. left panel list of different items , when 1 of clicked right panel displays info item.
the right panel has same view, info differs.
how can achieved in backbone. currently, i'm creating instances of collection each item , passing view. instances having same data.
i'm new backbone , i've prepare myself.
if understand question correctly, can this. there should 3 objects, model,leftview , rightview. each of items in left panel, can instantiate leftview , model. , 1 time clicked on of leftviews, can instantiate rightview based on same model. can utilize same model rightview leftview having same data.
javascript backbone.js collections models
No comments:
Post a Comment