Monday, 24 December 2018

Angular Material Table rowspan columns based on dataSource object array property size

Even now in version 7.2 of Angular Material, I can't seem to find examples on how to use rowspan on mat-table and keep the component functionality.

This is how far (short?) I've got:

https://stackblitz.com/edit/angular-wudscb

The example in the Stackblitz above is "almost" what I am looking for, but I am not being able to see how to finish it.

Am I too far of achieving this rowspan hack?

How do I loop the rows based on the lenght of the row['descriptions'] size?

What If I had another array field inside the object? Could I iterate and generate the columns/rows with it?



from Angular Material Table rowspan columns based on dataSource object array property size

No comments:

Post a Comment