mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-18 14:22:35 +00:00
20 lines
836 B
HTML
Executable File
20 lines
836 B
HTML
Executable File
<table mat-table [dataSource]="transactions" class="mat-elevation-z8">
|
|
<!-- Item Column -->
|
|
<ng-container matColumnDef="item">
|
|
<th mat-header-cell *matHeaderCellDef> Item </th>
|
|
<td mat-cell *matCellDef="let transaction"> {{transaction.item}} </td>
|
|
<td mat-footer-cell *matFooterCellDef> Total </td>
|
|
</ng-container>
|
|
|
|
<!-- Cost Column -->
|
|
<ng-container matColumnDef="cost">
|
|
<th mat-header-cell *matHeaderCellDef> Cost </th>
|
|
<td mat-cell *matCellDef="let transaction"> {{transaction.cost | currency}} </td>
|
|
<td mat-footer-cell *matFooterCellDef> {{getTotalCost() | currency}} </td>
|
|
</ng-container>
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
<tr mat-footer-row *matFooterRowDef="displayedColumns"></tr>
|
|
</table>
|