admin管理员组

文章数量:1278790

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

Anybody knows how to get rid of it?

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

Anybody knows how to get rid of it?

Share Improve this question asked Jul 11, 2013 at 20:42 diwatudiwatu 5,6995 gold badges40 silver badges63 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 5

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.

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

$('#treeContainer').jstree().hide_dots()

It's not a very fancy solution but I did this:

  1. Get the root node. I'm not sure if its the right way but I'm doing this:

    var root = tree.jstree("_get_node");
    
  2. Find the ins element and change its background style:

    root.find("ins:first").css("background-position-x", "-18px");
    

本文标签: javascriptHow to get rid of the extra line on jstree39s root nodeStack Overflow