ng2-tree
ng2-tree copied to clipboard
rootIsVisible not working
Hello,
when i set property rootIsVisible of Ng2TreeSettings to false, the root tree node is still displayed. The other properties (showCheckboxes, enableCheckboxes) work correctly.
@thiensk Could you reproduce this using https://stackblitz.com?
Hello @rychkog ,
https://stackblitz.com/edit/angular-e3ex9j
the rootIsVisible is set to false, so i would expect the Programming Languages is not displayed and the first level nodes will be Object Oriented programming and Prototype Based programming
Thanks.
@thiensk @rychkog I saw the same thing. I suspect it is because you are missing the css styles, just as I was. The root is not visible because of CSS:
https://github.com/valor-software/ng2-tree/blob/b1124cb2798355aed803790b576fed4a571de532/src/styles.css#L170-L176