angular-tree-component
angular-tree-component copied to clipboard
Need help regarding styling
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;
}

But I want the line to start from beginning, not with corresponding node location as shown in image. Please help me out.
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
thanks a lot