timc3 / backtree

Tree component for Backbone.js using nested Backbone collections and models, to build a Backbone View of the tree.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backtree.js - Archived


This project has now been archived and I don't suggest using it any more

Is a tree component that uses Backbone.js for building a tree naviation system based on Backbone nested collections.

Overview

Nested collections can be easily navigated using a Tree component, and this is an opinionated tree to do just that. It doesn't currently show models in the tree view.

Inspiration was gathered from Backgrid by Jimmy Yuen Ho Wong and Marionette by Derick Bailey, particular the use of composite views.

Supported browsers

It might well work on more browsers than the following but I will only test with a subset of all browsers

  • Internet Explorer 9+
  • Safari 6+
  • Chrome 22+
  • Firefox 18+

For IE8 and above you should use a shim for HTML5 tag support

Requirements

  • JQuery >= 1.7.2
  • Underscore 1.4.3 or LoDash with Underscore 1.0.0-rc.3
  • Backbone.js == 0.9.10
  • Backbone Babysitter == 0.1.4

It also currently requires a Javascript PubSub implementation (Included is a modified version of pubsub.js).

Test & Develop

Run test/index.html

About

Tree component for Backbone.js using nested Backbone collections and models, to build a Backbone View of the tree.

License:Other


Languages

Language:JavaScript 50.2%Language:HTML 46.9%Language:CSS 1.7%Language:Less 1.2%