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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -