An open API service indexing awesome lists of open source software.

https://github.com/jpdevries/bonsai

Responsive jQuery Tree
https://github.com/jpdevries/bonsai

Last synced: 8 months ago
JSON representation

Responsive jQuery Tree

Awesome Lists containing this project

README

          

bonsai.js
======

Responsive jQuery tree for you and me. [View the demo](http://jpdevries.github.io/Bonsai/demo).

![](http://f.cl.ly/items/1W2q2812102E340e032d/Screen%20Shot%202013-08-23%20at%209.51.27%20PM.png)

## Getting Started
### Formatting HTML
Using Bonsai is easy as long as you feed it correctly formmated markup to consume. By default, each expandable item should have a 'folder' class, contain atleast one anchor tag and optionally have child folders.
Each anchor tag should have the i tags displayed below and contain a title.

```html


```

## Using the Plugin
Call the bonsai jQuery plugin like so on the element(s) of your choice:

```js
// create a new bonsai
var mytree = new $.bonsai($('.bonsai'));
````