javascript - Can a backbone view have more than one collection? -


i starting out backbone , trying set view has question list. left of list have 4 filters, filter list language, country, status, , study. list , each of filters loaded own collections.

my idea make 1 view multiple collections, wonder if best practice in backbone since examples have seen have 1 collection per view.

another idea break in 2 views 1 being responsible filters , child view being responsible list of questions.

or, more backbone style drop of collections model , pass model view mentions here: http://documentcloud.github.com/backbone/#faq-nested

thanks ideas.

yes. theoretically view can encompass number of inner objects/collections. makes sense have views discrete possible, there reasons wrap more 1 thing in single view.

this matter of design. don't see creating container model bucket collections buys you.

don't concerned absolute best way. takes walking little down wrong path figure out better ways particular project.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -