ng2-tree icon indicating copy to clipboard operation
ng2-tree copied to clipboard

rootIsVisible not working

Open thiensk opened this issue 6 years ago • 3 comments

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 avatar Mar 18 '18 01:03 thiensk

@thiensk Could you reproduce this using https://stackblitz.com?

rychkog avatar Mar 26 '18 07:03 rychkog

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.

image

thiensk avatar Apr 04 '18 12:04 thiensk

@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

kody-abe avatar Apr 16 '18 21:04 kody-abe