大多数人使用的“标准”JQuery 树视图是什么?似乎不再支持最受欢迎的插件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2980291/
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-08-26 14:40:39  来源:igfitidea点击:

What is the "standard" JQuery treeview that most people use? It seems the most popular plugin isn't supported anymore?

jqueryjquery-uijquery-pluginstreeview

提问by Pete Alvin

I've chosen JQuery as my JavaScript library but now I'm a bit frustrated by the JQuery plugin site... the site kinda sucks... the plugin area isn't designed very well and I can only find a few treeviews. The one with the most votes (link text) isn't supported anymore.

我选择了 JQuery 作为我的 JavaScript 库,但现在我对 JQuery 插件站点感到有点沮丧......该站点有点糟糕......插件区域设计得不是很好,我只能找到一些树视图。不再支持得票最多的那个(链接文本)。

Can someone please point me to an industrial strength treeview?

有人可以指点我工业实力树视图吗?

Desired Features:

所需功能:

  • stable

  • async / ajax would be nice

  • drag and drop nodes would be nice

  • 稳定的

  • 异步 / ajax 会很好

  • 拖放节点会很好

I've been delighted so far with JQueryUI--nice design. But, how come it doesn't come with a standard tree view?

到目前为止,我对 JQueryUI 感到很高兴——漂亮的设计。但是,它怎么没有标准的树视图呢?

Pete

皮特

采纳答案by Nick Craver

I don't know that there is a "standard" single solution for this. One I've used in the past that just got a major update is jsTree, it got a lot of improvements...it doesn't fit your "stable" requirement because it's in RC status, but that should change soon.

我不知道有一个“标准”的单一解决方案。我过去使用过的一个刚刚进行了重大更新的是 jsTree,它有很多改进……它不符合您的“稳定”要求,因为它处于 RC 状态,但应该很快就会改变。

You can get more info on it here(it is large though, make sure it's not overkill for your needs)

您可以在此处获得更多信息虽然它很大,但请确保它不会满足您的需求)

There are certainly other options, but as I haven't used any of them (and we eventually went to a custom tree since our requirements were very light/specific)...I just can't give any first-hand experience information for the alternatives. I'll it for someone who's actually used them to give some insight.

当然还有其他选项,但因为我没有使用它们中的任何一个(并且我们最终去了一个自定义树,因为我们的要求非常轻/特定)......我无法提供任何第一手经验信息替代方案。我会为真正使用它们的人提供一些见解。

Also, the jQuery UI Tree is coming, it's currently in the planning stages, you can track it's progress here: http://jqueryui.pbworks.com/Tree

此外,jQuery UI 树即将推出,目前处于规划阶段,您可以在此处跟踪它的进度:http: //jqueryui.pbworks.com/Tree

回答by FastTrack

For anyone looking for a "Checkbox Treeview", look no further: https://code.google.com/p/checkboxtree/

对于任何寻找“复选框树视图”的人,别再看了:https: //code.google.com/p/checkboxtree/

I stumbled upon this question when looking for a Checkbox Treeview so I thought I'd post a link - maybe helpful to others out there like myself!

我在寻找复选框树视图时偶然发现了这个问题,所以我想我会发布一个链接 - 也许对像我这样的其他人有帮助!

回答by Sydwell

JQuery Uihas a menuwidget which is essentially a tree structure.

JQuery Ui有一个菜单小部件,它本质上是一个树结构。

http://jqueryui.com/menu/

http://jqueryui.com/menu/

The first two requirements are meet. I am not sure about the ability to handle drag and dropped items however.

满足前两个要求。但是,我不确定处理拖放项目的能力。

回答by David Fawzy

Js Tree is an easy one and you can use it in a form with checkboxes plug in to submit to the server enter link description here

Js Tree 是一个简单的,你可以在带有复选框插件的表单中使用它提交到服务器 在此处输入链接描述

https://www.jstree.com/

https://www.jstree.com/

回答by Cody

Jquery Saplinggets the job done without requiring you to change the markup.

Jquery Sapling无需您更改标记即可完成工作。

回答by shababhsiddique

A simpler version is here

一个更简单的版本在这里

http://www.dhtmlgoodies.com/index.html?whichScript=drag-drop-folder-tree

http://www.dhtmlgoodies.com/index.html?whichScript=drag-drop-folder-tree

its very basic and lack some features like tick selection, different icons for open and close folder etc..

它非常基础,缺少一些功能,如勾选选择、打开和关闭文件夹的不同图标等。