Backbone Marionette: Add to region -
Backbone Marionette: Add to region -
instead of using region.show(view), add together multiple views part without destroying view nowadays in region. have tried using preventdestroy: true, isnt working out. part shows lastly "application".
var fetchingapplications = app.request('application:entities'); $.when(fetchingapplications).done(function(applications) { console.log(applications); applications.each(function(application) { var applicationview = new list.application({ model: application }); app.layout.mainregion.show(applicationview, { preventdestroy: true }); });
i know illustration weird, because simply utilize collectionview. however, using collectionview not want do.
i think should works dynamically add together part , fadein. add together class or inline style 'display: none' not displayed , in view set 'onshow : function(){ this.$el.fadein(); }'
marionette
Comments
Post a Comment