angular-tree-component icon indicating copy to clipboard operation
angular-tree-component copied to clipboard

Need help regarding styling

Open debslab opened this issue 9 years ago • 2 comments

I am using following style to add a line after each node as shown in image. .tree .node-wrapper:after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background-color: #d4d6da; } image

But I want the line to start from beginning, not with corresponding node location as shown in image. Please help me out.

debslab avatar Mar 07 '17 02:03 debslab

Hi, You can use the following option (10 is an example):

{
  levelPadding: 10
}

And then you can style the entire row, because the padding is achieved on a per node basis, and not for the entire children

adamkleingit avatar Mar 08 '17 08:03 adamkleingit

thanks a lot

debslab avatar Mar 08 '17 08:03 debslab