backbone.js - Does a CollectionView's childView have to be an ItemView? -


i trying final layout like...

  • left column (collectionview)
    • panellayout(layoutview)
      • bannerview (itemview)
      • contentview (layoutview)
        • section1 (compositeview)
          • gridrow (itemview)
    • panellayout(layoutview)
      • bannerview (itemview)
      • contentview (layoutview)
        • section1 (compositeview)
          • gridrow (itemview)

but left column (collectionview) not want show panellayout(layoutview). possible have childview: layoutview (like example below) , not itemview (http://marionettejs.com/docs/v2.4.2/marionette.collectionview.html#collectionviews-childview)

class panellayoutview extends marionette.layoutview template: templates['panel']  regions:{      bannerregion: "#banner-region"     contentregion: "#content-region" }    class leftcolumncollectionview extends marionette.collectionview     classname: "leftcolumn column"     childview: panellayoutview     childviewcontainer: "leftcolumn" 

yes. there absolutely nothing wrong using layoutview or other marionette view type childview collectionview.


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -