zTree:实现单选/取消父子关联等
小白参考,大神勿进
zTree默认上下级选择有级联关系
实现单选上级和这下级,zTree API其实有介绍 新增配置即可( chkboxType :{ "Y" : "", "N" : "" } )
check : { enable : true, chkboxType :{ "Y" : "", "N" : "" } //chkStyle: "radio", //单选框 //radioType: "all" //对所有节点设置单选 }
小白参考,大神勿进
zTree默认上下级选择有级联关系
实现单选上级和这下级,zTree API其实有介绍 新增配置即可( chkboxType :{ "Y" : "", "N" : "" } )
check : { enable : true, chkboxType :{ "Y" : "", "N" : "" } //chkStyle: "radio", //单选框 //radioType: "all" //对所有节点设置单选 }