Thursday, 15 July 2010

javascript - Backbone dynamically set collection view el after click on dom element -



javascript - Backbone dynamically set collection view el after click on dom element -

the project calendar model 1 day , collection contain days month. view same. when render collection have calendar on screen. need, able set todo list in selected day. need model,view , collection. thought tasks 1 day day collection - , there go problem : how set new collection view "el" element of clicked day , id. each day has got same class , unique id equal date - "2013.02.08" not sure possible or maybe approach wrong , should in way. edit - ok lets clarify :

i know there in no collection of collections how ? have calendar on screen - imagine 31 square divs. want todo list in each of them - :

model of task view of task {li element} view of tasks {ul element} collection of tasks {model:model}

in each of squares. how store collections ?

javascript backbone.js backbone-views

No comments:

Post a Comment