kirill-zhirnov / backbone-tree-view

Backbone.View component which provide interactive tree. Demo:

Home Page:http://kirill-zhirnov.github.io/backbone-tree-view/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a tree with a Backbone Collection

amiceli opened this issue · comments

Currently we need a BackTree collection.

There is a way to use a Backbone Collection ?

For example :

var collectionObject = new Backbone.Collection({ url : 'users' });

collectionObject.fetch().done(function() {

    // create Tree here with collectionObject

    var tree = new BackTree.Tree({
        collection : collectionObject
    });
});

Thank you