mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-11 04:55:07 +00:00
76358f996e
+ @angular/material-moment-adapter added to package.json
31 lines
1.3 KiB
HTML
31 lines
1.3 KiB
HTML
<div class="example-container mat-elevation-z8">
|
|
<mat-table #table [dataSource]="dataSource" matSort>
|
|
|
|
<!-- Position Column -->
|
|
<ng-container matColumnDef="position">
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header> No.</mat-header-cell>
|
|
<mat-cell *matCellDef="let element"> {{element.position}}</mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Name Column -->
|
|
<ng-container matColumnDef="name">
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Name</mat-header-cell>
|
|
<mat-cell *matCellDef="let element"> {{element.name}}</mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Weight Column -->
|
|
<ng-container matColumnDef="weight">
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Weight</mat-header-cell>
|
|
<mat-cell *matCellDef="let element"> {{element.weight}}</mat-cell>
|
|
</ng-container>
|
|
|
|
<!-- Color Column -->
|
|
<ng-container matColumnDef="symbol">
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Symbol</mat-header-cell>
|
|
<mat-cell *matCellDef="let element"> {{element.symbol}}</mat-cell>
|
|
</ng-container>
|
|
|
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
|
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
|
</mat-table>
|
|
</div> |