ExtJs TreePanel 全选与反选

selectAll: function() {
this.getRootNode().eachChild(function (child) {
child.set('checked', true);
});
},

unSelectAll: function() {
this.getRootNode().eachChild(function (child) {
child.set('checked', false);
});
}

你可能感兴趣的:(TreePanel)