cancel
Showing results for 
Search instead for 
Did you mean: 

UI5 TreeTable : change the table indentation

Hello All,

I would like to change the indentation between first level (parents) nodes and Second level nodes(children).

I didn't find anything in the ui5 treeetable api.

while inspecting the html code i found out that on child there is a span tag with margin-left: -17px while on parents the margin left is 0.


<span class="sapUiTableTreeIcon sapUiTableTreeIconLeaf" tabindex="-1" title="Node" style="margin-left: -17px;"> </span>

Does anyone know hoe to change the indentation value (to more than -17px) ?

Thanks alot,

Ido

Accepted Solutions (0)

Answers (2)

Answers (2)

mrbass
Participant

Life saver !

Found out the solution :

Im adding the css:

tr[data-sap-ui-level="1"]>td>div>span.sapUiTableTreeIcon {

    margin-left:50px !important;

}