edo1z blog

プログラミングなどに関するブログです

Marionette

Backbone.js Marionette イベント 他View間の連携

参考:Event Aggregator var MyApp = new Backbone.Marionette.Application(); // Alert the user on the 'minutePassed' event MyApp.vent.on("minutePassed", function(someData){ alert("Received", someData); }); // This will emit an event with the …

Backbone.js(Marionette) - CollectionViewとCompositeView

ItemViewはシンプルだけど、collectionViewとcompositeViewというのがあるので、使い分けを確認する。 参考1:Marionette.jsまとめ その3 CompositeView, Layout, Region CompositeViewは、テンプレートを設定することができるらしい。CollectionViewは、テ…

Backbone.jsとMarionette

http://backbonejs.org/ここのdevelopバージョンを使ってみます。Underscore.jsに依存します。http://underscorejs.org/ jQueryも使います。 モデル var Hoge = Backbone.Model.extend({ defaults:{ 'name': 'taro', 'age': 20, 'updateTime': new Date() },…