A jsTree Plugin (http://www.jstree.com)
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.txt
jstree.counter.js
screenshot.png

README.txt

jsTree Google Reader Counter Plugin

In order to use this plugin you need an up and running jsTree (http://www.jstree.com)
in your webapp.

Works and behaves like Google Reader subscriptions tree.
No further explanation. Look at the screenshot.png :-)


== Public API ==

Initialization:

$('#jstree').jstree({
    "counter" : { 
        "text_limit" : "42", 
        "new_entry_class" : "new-entry"
    },
    "plugins": [
        "counter"
    ]
});


Increase or decrease counter of one leaf at a time:

decrease(selector)

increase(selector)

Example:

$("#jstree").jstree("increase","#leaf_dom_id")


== TODO ==

Restrict increase/decrease only to leaf nodes. Validate incoming selector against node types.