|
|
|
@ -2,14 +2,36 @@
|
|
|
|
|
<button mat-raised-button color="primary">Primary</button>
|
|
|
|
|
<button mat-raised-button color="accent">Accent</button>
|
|
|
|
|
</div>
|
|
|
|
|
<table mat-table [dataSource]="bikes" class="mat-elevation-z8">
|
|
|
|
|
<div id="table-container">
|
|
|
|
|
<table
|
|
|
|
|
mat-table
|
|
|
|
|
[dataSource]="bikes"
|
|
|
|
|
class="mat-elevation-z8"
|
|
|
|
|
cdkDropList
|
|
|
|
|
cdkDropListOrientation="horizontal"
|
|
|
|
|
(cdkDropListDropped)="drop($event)"
|
|
|
|
|
>
|
|
|
|
|
<!--- Note that these columns can be defined in any order.
|
|
|
|
|
The actual rendered columns are set as a property on the row definition" -->
|
|
|
|
|
|
|
|
|
|
<!-- Position Column -->
|
|
|
|
|
<ng-container matColumnDef="id">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef>ID</th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">{{ element.id }}</td>
|
|
|
|
|
<!-- Checkbox Column -->
|
|
|
|
|
<ng-container matColumnDef="select" sticky>
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef>
|
|
|
|
|
<mat-checkbox
|
|
|
|
|
(change)="$event ? masterToggle() : null"
|
|
|
|
|
[checked]="selection.hasValue() && isAllSelected()"
|
|
|
|
|
[indeterminate]="selection.hasValue() && !isAllSelected()"
|
|
|
|
|
>
|
|
|
|
|
</mat-checkbox>
|
|
|
|
|
</th>
|
|
|
|
|
<td mat-cell *matCellDef="let row">
|
|
|
|
|
<mat-checkbox
|
|
|
|
|
(click)="$event.stopPropagation()"
|
|
|
|
|
(change)="$event ? selection.toggle(row) : null"
|
|
|
|
|
[checked]="selection.isSelected(row)"
|
|
|
|
|
>
|
|
|
|
|
</mat-checkbox>
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<!-- Name Column -->
|
|
|
|
@ -25,9 +47,15 @@
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<!-- Weight Column -->
|
|
|
|
|
<!-- ID Column -->
|
|
|
|
|
<ng-container matColumnDef="id">
|
|
|
|
|
<th mat-header-cell cdkDrag *matHeaderCellDef>ID</th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">{{ element.id }}</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<!-- FrameNumber Column -->
|
|
|
|
|
<ng-container matColumnDef="frameNumber">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef>Fahrgestellnummer</th>
|
|
|
|
|
<th mat-header-cell cdkDrag *matHeaderCellDef>Fahrgestellnummer</th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
|
<!--<mat-form-field>
|
|
|
|
|
<input matInput color="warn" [value]="element.security.frameNumber"/>
|
|
|
|
@ -36,12 +64,22 @@
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<!-- Symbol Column -->
|
|
|
|
|
<!-- NumberOfChildren Column -->
|
|
|
|
|
<ng-container matColumnDef="numberOfChildren">
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef>Anzahl Kinder</th>
|
|
|
|
|
<th mat-header-cell cdkDrag *matHeaderCellDef>Anzahl Kinder</th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">{{ element.numberOfChildren }}</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
|
|
|
<!-- Buttons Column -->
|
|
|
|
|
<ng-container matColumnDef="buttons" stickyEnd>
|
|
|
|
|
<th mat-header-cell *matHeaderCellDef></th>
|
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
|
<mat-icon>more_vert</mat-icon>
|
|
|
|
|
</td>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<!-- Table Definition -->
|
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
|
|
|
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|