How to show the connector lines as default?

旧街凉风 提交于 2019-12-09 21:44:33

问题


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.


回答1:


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");

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



来源:https://stackoverflow.com/questions/41877076/how-to-show-the-connector-lines-as-default

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!