vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.13k stars 1.38k forks source link

checkbox events in v1.0.0 #217

Closed srigi closed 12 years ago

srigi commented 12 years ago

I cannot figure out how to bind my custom handler for checkbox events. I got supersimple example:

$("#demo")
    .bind("toggle_change.jstree", function(ev, data) {
        console.info(ev);
        console.info(data);
    })
    .jstree({
        "plugins" : ["themes", "html_data", "ui", "checkbox"]
    });

This was valid in v1.0-rc3. But in actual version this is not functional anymore. I desperately need to use v1.0.0 and be able to observe checkbox events. Pls help.

vakata commented 12 years ago

Hi,

v.1.0.0 is still in development (mainly because the docs are not ready). There's been a lot of refactoring and api changes. The event you need is called toggle_check.jstree