Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show the connector lines as default?

Tags:

fancytree

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.

like image 787
Keyur Padalia Avatar asked Jan 05 '23 15:01

Keyur Padalia


1 Answers

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.

like image 101
mechenbier Avatar answered May 26 '23 19:05

mechenbier