How to show the connector lines as default?
Asked Answered
M

1

5

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.

Murrelet answered 26/1, 2017 at 15:33 Comment(0)
D
11

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.

Dramatize answered 28/1, 2017 at 14:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.