|
|
@ -2,14 +2,36 @@
|
|
|
|
<button mat-raised-button color="primary">Primary</button>
|
|
|
|
<button mat-raised-button color="primary">Primary</button>
|
|
|
|
<button mat-raised-button color="accent">Accent</button>
|
|
|
|
<button mat-raised-button color="accent">Accent</button>
|
|
|
|
</div>
|
|
|
|
</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.
|
|
|
|
<!--- Note that these columns can be defined in any order.
|
|
|
|
The actual rendered columns are set as a property on the row definition" -->
|
|
|
|
The actual rendered columns are set as a property on the row definition" -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Position Column -->
|
|
|
|
<!-- Checkbox Column -->
|
|
|
|
<ng-container matColumnDef="id">
|
|
|
|
<ng-container matColumnDef="select" sticky>
|
|
|
|
<th mat-header-cell *matHeaderCellDef>ID</th>
|
|
|
|
<th mat-header-cell *matHeaderCellDef>
|
|
|
|
<td mat-cell *matCellDef="let element">{{ element.id }}</td>
|
|
|
|
<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>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Name Column -->
|
|
|
|
<!-- Name Column -->
|
|
|
@ -25,9 +47,15 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
</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">
|
|
|
|
<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">
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
<!--<mat-form-field>
|
|
|
|
<!--<mat-form-field>
|
|
|
|
<input matInput color="warn" [value]="element.security.frameNumber"/>
|
|
|
|
<input matInput color="warn" [value]="element.security.frameNumber"/>
|
|
|
@ -36,12 +64,22 @@
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Symbol Column -->
|
|
|
|
<!-- NumberOfChildren Column -->
|
|
|
|
<ng-container matColumnDef="numberOfChildren">
|
|
|
|
<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>
|
|
|
|
<td mat-cell *matCellDef="let element">{{ element.numberOfChildren }}</td>
|
|
|
|
</ng-container>
|
|
|
|
</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>
|
|
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|