Windows风格的Dynatree多选实现
我想实现 Windows 风格的多选:
当用户按住 CTRL 键并选择树的多个节点时。 Dynatree(从这里 http://wwwendt.de/tech/dynatree/doc/ dynatree-doc.html)默认情况下有用于节点选择的复选框,但我的客户似乎不喜欢。
我的问题是,是否可以使用提供的回调集来实现我需要的功能? 另外,目前,当我按住 CTRL 键并单击节点时,它会打开一个新窗口。 有什么办法可以抑制这个功能吗?我想我必须通过 CSS 来做?
I would like to implement windows style multi-selection:
when user holds CTRL key and selects several nodes of the tree.
Dynatree (from here http://wwwendt.de/tech/dynatree/doc/dynatree-doc.html) by default has checkboxes for node selection which my client doesn't seem to like.
My question is, is it possible to implement what I need using provided set of callbacks?
also, curently, when I hold CTRL key and click on the node, it opens a new window.
Is there any way to suppress this functionality? i am guess I would have to do through CSS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里查看示例和源代码
http://wwwendt.de/tech/dynatree/doc/sample-select。 html
该页面上的最后一个示例使用
checkbox: false
树选项来隐藏复选框。onClick
处理程序调用dtnode.toggleSelection()
。这可以被替换为
“Desecting all Nodes”之类的东西,可以像这样完成:
Have a look at the sample and source code here
http://wwwendt.de/tech/dynatree/doc/sample-select.html
The last example on that page uses the
checkbox: false
tree option to hide the checkboxes.The
onClick
handler callsdtnode.toggleSelection()
.This could be replaced by something like
Desecting all nodes could be done like this: