Weitere ähnliche Inhalte
Ähnlich wie introduction to Marionette.js (jscafe14) (20)
introduction to Marionette.js (jscafe14)
- 11. 情報源
● 入門
○ github:Developing Backbone.js Applications
○ slide: Backbone経緯 / 概念の解説 / 概説
○ blog : viewを図示した良記事
● リファレンス
○ github: 公式document / 公式wiki
● tutorial
○ blog : 1,2 / video : 1 / 書籍 : 1
● example
○ todoMVC / 本棚アプリ?のソース / mailer?
● Marionette自体のboilerplate系
○ github : boilerplate / yeomanのgenerator
- 37. Layout
Regionの集合
● regionsフィールドでregionを登録
○ regions: { Region名: html要素 }
○ 例)regions: { menu: “#side” }
■ id=sideなhtml要素をmenuというRegionで登録
■ ここでshowするとid=sideにviewのelを描写
○ 後でaddRegionで追加も出来る
● 実はItemViewをextendしてる
○ ItemViewのようにtemplate指定可能
○ ItemViewのようにLayout自体をshowできる
○ 例)MyApp.mainRegion.show(new ChildLayout())