What I want is drawn out in the following image. I use Angular Material (7.x) and use the Mat-Table implementation as described here: https://material.angular.io/components/table/overview
The above scenario is for the business to show multiple Sales Invoices.
I used Mat Table of Angular already for using multipe rows for one row, and this works. But now I also have to make the first row (Type A) have multiple rows within the multiple row table.
I have some ideas on how to be able to get this working, but I don't want to start and know beforehand if the solution is going to work or not.
I started iterating over the objects in the salesInvoices:
<tr mat-header-row *matHeaderRowDef="displayedPurchaseInvoiceColumns"></tr>
<ng-container *ngFor="let item of invoices.salesInvoice">
<tr mat-row class="table-first-row" *matRowDef="let row; columns: displayedSalesInvoiceColumns"></tr>
</ng-container>
<tr mat-row class="table-second-row" *matRowDef="let row; columns: displayedPurchaseInvoiceColumns"></tr>
This doesn't show anything useful. I think it doesn't even do anything as I only see the purchase Invoices displayed, not the sales invoices.
I was thinking about using a mat-table for the first row? I have no idea how I am able to do so though, I am also not sure if this will work.
I really want to get this working WITH Mat-Table
but I am afraid I won't be able to get it working with the library of Material and have to make something custom.
Any help is welcome! If I need to provide more information, please tell me.