带有复选框/多选的免费 javascript 树视图库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4407221/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-25 11:19:48  来源:igfitidea点击:

Free javascript tree view library with checkbox/multiselect

javascript

提问by Hoàng Long

I want to find a javascript library that supports folder-like tree view with checkbox/ multiselect. There are quite a number of libraries, such as www.treeview.net, but lots of them requires purchase or including advertising link.

我想找到一个 javascript 库,它支持带有复选框/多选的文件夹状树视图。有很多图书馆,例如 www.treeview.net,但很多都需要购买或包含广告链接。

Can I find any free javascript library that support tree view with checkbox?

我可以找到任何支持带有复选框的树视图的免费 javascript 库吗?

回答by user2138609

try this one

试试这个

http://kazge.com/show/zkjs/src/tree.html

http://kazge.com/show/zkjs/src/tree.html

it support checkbox, and more feature

它支持复选框和更多功能

the project's home page is https://code.google.com/p/zkjs/

该项目的主页是https://code.google.com/p/zkjs/

回答by Gili

I've used http://sortablejs.github.io/Sortable/#nestedwith great success. The default UI might throw you off (it doesn't look like a tree) but when you consider mobile users this look actually works much better.

我已经使用http://sortablejs.github.io/Sortable/#nested取得了巨大的成功。默认 UI 可能会让您失望(它看起来不像一棵树),但是当您考虑移动用户时,这种外观实际上效果更好。

I've never tried using checkboxes with it but I doubt it would be a problem.

我从来没有尝试过使用复选框,但我怀疑这会是一个问题。