We need a way to pass attributes to the constructor of the item view.
Something like:
Inside a collection view:
Thorax.CollectionView.extend({
name: "app/list",
initialize: function() {
this.itemAttributes = {
myVar : 'value'
}
});
Then inside a collection item:
Thorax.View.extend({
name: "app/list-item",
initialize: function() {
var a = this.myVar;
}
});
We need a way to pass attributes to the constructor of the item view.
Something like:
Inside a collection view:
Then inside a collection item: