2017-09-27 16:40:59 +00:00
|
|
|
<div class="example-container mat-elevation-z8">
|
2018-05-04 16:28:19 +00:00
|
|
|
<table mat-table #table [dataSource]="dataSource">
|
2017-09-27 16:40:59 +00:00
|
|
|
|
2018-05-04 16:28:19 +00:00
|
|
|
<!--- Note that these columns can be defined in any order.
|
|
|
|
The actual rendered columns are set as a property on the row definition" -->
|
2017-09-27 16:40:59 +00:00
|
|
|
|
2018-05-04 16:28:19 +00:00
|
|
|
<!-- Position Column -->
|
|
|
|
<ng-container matColumnDef="position">
|
|
|
|
<th mat-header-cell *matHeaderCellDef> No. </th>
|
|
|
|
<td mat-cell *matCellDef="let element"> {{element.position}} </td>
|
|
|
|
</ng-container>
|
2017-09-27 16:40:59 +00:00
|
|
|
|
2018-05-04 16:28:19 +00:00
|
|
|
<!-- Name Column -->
|
|
|
|
<ng-container matColumnDef="name">
|
|
|
|
<th mat-header-cell *matHeaderCellDef> Name </th>
|
|
|
|
<td mat-cell *matCellDef="let element"> {{element.name}} </td>
|
|
|
|
</ng-container>
|
2017-09-27 16:40:59 +00:00
|
|
|
|
2018-05-04 16:28:19 +00:00
|
|
|
<!-- Weight Column -->
|
|
|
|
<ng-container matColumnDef="weight">
|
|
|
|
<th mat-header-cell *matHeaderCellDef> Weight </th>
|
|
|
|
<td mat-cell *matCellDef="let element"> {{element.weight}} </td>
|
|
|
|
</ng-container>
|
2017-09-27 16:40:59 +00:00
|
|
|
|
2018-05-04 16:28:19 +00:00
|
|
|
<!-- Symbol Column -->
|
|
|
|
<ng-container matColumnDef="symbol">
|
|
|
|
<th mat-header-cell *matHeaderCellDef> Symbol </th>
|
|
|
|
<td mat-cell *matCellDef="let element"> {{element.symbol}} </td>
|
|
|
|
</ng-container>
|
2017-09-27 16:40:59 +00:00
|
|
|
|
2018-05-04 16:28:19 +00:00
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
|
|
</table>
|
2017-09-27 16:40:59 +00:00
|
|
|
</div>
|