lundi 26 décembre 2016

jstree : seleted all or checked all

how can i checked all the checkboxes that appear in jstree, when derived code like this? and when you click the group will change all the checked based group

$(function() {
    
    // transform menutree div
   var menutree = $('#menutree').jstree({
                       "plugins": ["types", "checkbox"],
                                'core': {
                                 //"load_open": true,
                                    "data": {
                                        "async": false,
                                        'cache': false,
                                        'dataType': 'JSON',                        
                                        'url':json_menu_url,
                                        'data': function(node) {
                                           
                                            
                                        },
                                        'success': function(r){
                                                console.log(r)
                                        }
                                    },
                                },
                         });

           
            $(document).on('dnd_stop.vakata', function (e, data) {
                console.log('--drop--');
            });

});

and data json enter image description here




Aucun commentaire:

Enregistrer un commentaire