Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of the extra line on jstree's root node

Tags:

javascript

As you can see on the screenshot from a jstree,above the triangle on the first node there is an extra vertical dash line:

enter image description here

Anybody knows how to get rid of it?

like image 461
www.diwatu.com Avatar asked Jul 11 '13 20:07

www.diwatu.com


2 Answers

In the version of jsTree I'm using, v3.3.7, the following call removes the dots...

$('#tree').jstree({
    core: {
        data: jsonData, // Some JSON data
        themes: { dots: false }
    }
});

The jsTree API documentation has specifications about this call.

like image 94
Aron Boyette Avatar answered Nov 14 '22 22:11

Aron Boyette


With current version (3.3.3) you can remove dots directly by calling

$('#treeContainer').jstree().hide_dots()
like image 36
Tomas Chabada Avatar answered Nov 14 '22 22:11

Tomas Chabada