Set different headers for every child level using PrimengTreeTable and Angular 8

372 Views Asked by At

I need to set different headers for child-level data. I am using PrimengTreeTable with Angular 8. Parent records can have an nth level child. For every level I want different headers to be shown. It's like showing a different table at every level. Please help me out with this.

1

There are 1 best solutions below

0
On

You can use *ngIF to control. When you expand row, trigger an event that activate the ngIF make the column visible.