本文介绍了如何默认显示连接器线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用这个jquery树.并想知道是否可以设置任何属性以使连接线始终可见.

Hi there i have just started using this jquery tree. and was wondering if there is any property I can set to make the connecting line visible all the time.

推荐答案

选项集中没有可用的属性,该属性将连接线始终显示为可见,但是您可以使用fancytree-container将类添加到对象类以打开连接器.如果要始终保持可见连接,可以在初始化花式树后立即将类添加到fancytree-container:

There isn't a property available in the options set connecting lines to visible all the time, but you can add a class to the object with the fancytree-container class to turn on connectors. If you want to have connections visible all the time, you could add the class to the fancytree-container right after you initialize the fancytree:

$("#tree").fancytree({
   // initialization options
});

$(".fancytree-container").addClass("fancytree-connectors");

此JSFiddle 演示了如何在fancytree-container对象上切换fancytree-connectors类.

This JSFiddle demonstrates how to toggle the fancytree-connectors class on the fancytree-container object.

这篇关于如何默认显示连接器线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 13:22