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 badges3 Answers
Reset to default 5In 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:
Get the root node. I'm not sure if its the right way but I'm doing this:
var root = tree.jstree("_get_node");
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
版权声明:本文标题:javascript - How to get rid of the extra line on jstree's root node - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741261008a2367619.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论