Skip to content

Pass attributes to item view of a collection view on creation #1

@liorcode

Description

@liorcode

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;
    }
});

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions