Plus and minus icon

Hello,

In a precedent question about plus and minus icon, you answer me :

You can’t fully remove plus|minus icons ( tree has not much sense without them ) 
The icons can be removed for some items by using
           tree.showItemSign(id,false)
but there is no option , which will hide icons for all items in the tree.

You can try to use 
     tree.enableTextSigns(true);

and define next css rule

.dhx_tree_textSign{
   display:none;
}

if i use your 2nd technic, i have a blank between the border and my tree node. I have tried to change the with propriety of dhx_tree_textSign class. But if i take it to 0px, i have no space in my tree and all level are at the same place. Do you have a solution to hide the plus/minus icon and see the tree at the good place?

Thanks

Steve



Hello,

you can try to use the following approach to hide +/- signs and display top-level items without offset. 


tree.enableTreeLines(false);
tree.setImageArrays(“plus”,“blank.gif”,“blank.gif”,“blank.gif”,“blank.gif”);
tree.setImageArrays(“minus”,“blank.gif”,“blank.gif”,“blank.gif”,“blank.gif”);
tree.loadXML(“tree.xml”,function(){
  var ch = tree.getSubItems(0).split(",");
  for(var i = 0 ; i < ch.length; i++)
    tree._idpull[ch[i]].htmlNode.childNodes[0].childNodes[0].childNodes[0].style.display=“none”
});