花式树
我们想要的是根据我们添加的自定义类禁用复选框。
例如:
renderNode: function(event, data) {
if(!data.node.folder) {
$(data.node.span).addClass("custom-class");
}
$(".custom-class").css({ // css to disable checkbox});
}
最佳答案
您无法仅使用 css 禁用复选框(只需切换或调暗图像)。 而是使用 api:
node.unselectable = true;
node.render();
关于jquery - 花式树禁用节点的复选框选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31843382/