|
|
@ -2,46 +2,84 @@
|
|
|
|
<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">
|
|
|
|
<!--- Note that these columns can be defined in any order.
|
|
|
|
<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" -->
|
|
|
|
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
|
|
|
|
</ng-container>
|
|
|
|
(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 -->
|
|
|
|
<!-- Name Column -->
|
|
|
|
<ng-container matColumnDef="name">
|
|
|
|
<ng-container matColumnDef="name">
|
|
|
|
<th mat-header-cell *matHeaderCellDef>Name</th>
|
|
|
|
<th mat-header-cell *matHeaderCellDef>Name</th>
|
|
|
|
<td
|
|
|
|
<td
|
|
|
|
mat-cell
|
|
|
|
mat-cell
|
|
|
|
*matCellDef="let element"
|
|
|
|
*matCellDef="let element"
|
|
|
|
contenteditable
|
|
|
|
contenteditable
|
|
|
|
(input)="onTableInput(element)"
|
|
|
|
(input)="onTableInput(element)"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{{ element.name }}
|
|
|
|
{{ element.name }}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Weight Column -->
|
|
|
|
<!-- ID Column -->
|
|
|
|
<ng-container matColumnDef="frameNumber">
|
|
|
|
<ng-container matColumnDef="id">
|
|
|
|
<th mat-header-cell *matHeaderCellDef>Fahrgestellnummer</th>
|
|
|
|
<th mat-header-cell cdkDrag *matHeaderCellDef>ID</th>
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
<td mat-cell *matCellDef="let element">{{ element.id }}</td>
|
|
|
|
<!--<mat-form-field>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- FrameNumber Column -->
|
|
|
|
|
|
|
|
<ng-container matColumnDef="frameNumber">
|
|
|
|
|
|
|
|
<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"/>
|
|
|
|
<input matInput color="warn" [value]="element.security.frameNumber"/>
|
|
|
|
</mat-form-field>-->
|
|
|
|
</mat-form-field>-->
|
|
|
|
{{ element.security.frameNumber }}
|
|
|
|
{{ element.security.frameNumber }}
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- NumberOfChildren Column -->
|
|
|
|
|
|
|
|
<ng-container matColumnDef="numberOfChildren">
|
|
|
|
|
|
|
|
<th mat-header-cell cdkDrag *matHeaderCellDef>Anzahl Kinder</th>
|
|
|
|
|
|
|
|
<td mat-cell *matCellDef="let element">{{ element.numberOfChildren }}</td>
|
|
|
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Symbol Column -->
|
|
|
|
<!-- Buttons Column -->
|
|
|
|
<ng-container matColumnDef="numberOfChildren">
|
|
|
|
<ng-container matColumnDef="buttons" stickyEnd>
|
|
|
|
<th mat-header-cell *matHeaderCellDef>Anzahl Kinder</th>
|
|
|
|
<th mat-header-cell *matHeaderCellDef></th>
|
|
|
|
<td mat-cell *matCellDef="let element">{{ element.numberOfChildren }}</td>
|
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
|
</ng-container>
|
|
|
|
<mat-icon>more_vert</mat-icon>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
|
|
<!-- Table Definition -->
|
|
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: true"></tr>
|
|
|
|
</table>
|
|
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|