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

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

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -