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)
- section1 (compositeview)
- panellayout(layoutview)
- bannerview (itemview)
- contentview (layoutview)
- section1 (compositeview)
- gridrow (itemview)
- section1 (compositeview)
- panellayout(layoutview)
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
Post a Comment