复选框树 [英] Tree of checkboxes

查看:125
本文介绍了复选框树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个树的复选框小部件的Javascript。我试图使用 jquery-checktree ,它的目的是做我想要的,但它有以下问题:




  • 无法识别已选中的复选框,并将所有内容设为未选中。


  • 我的树的每一行从上面的行开始缩进,即使它们<$ c $在< ul>
  • 解决方案

    任何人都可以推荐一个可以使用的工具,几个修复jquery-checktree和使用它。一些更改可能广泛适用,我将其电子邮件发送给开发人员,其他人可能只对我的项目有用。


    I'm looking for a "tree of checkboxes" widget for Javascript. I tried to use jquery-checktree which purports to do exactly what I want, however it has the following problems:

    • It doesn't recognize checkboxes that are already checked and renders everything as unchecked.
    • It starts off with everything collapsed and doesn't give an option to start with everything uncollapsed
    • Each line of my tree starts indented from the line above, even if they are <li> in the same <ul>.

    Can anybody recommend one that works, or fixes for this one?

    解决方案

    I ended up making a few fixes to jquery-checktree and using it. Some of the changes are probably broadly applicable and I emailed them to the developer, and others are probably only useful to my project.

    这篇关于复选框树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆