main #48
@ -1 +1,21 @@
|
||||
<p>inherited-item-characteristic-editor works!</p>
|
||||
<table mat-table [dataSource]="datasource" class="mat-elevation-z8">
|
||||
<ng-container matColumnDef="characteristic">
|
||||
<th mat-header-cell *matHeaderCellDef>Characteristic</th>
|
||||
<td mat-cell *matCellDef="let characteristicValue">{{characteristicValue.key.characteristicName}}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="value">
|
||||
<th mat-header-cell *matHeaderCellDef>Value</th>
|
||||
<td mat-cell *matCellDef="let characteristicValue">{{characteristicValue.value}}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="edit">
|
||||
<th mat-header-cell *matHeaderCellDef></th>
|
||||
<td mat-cell *matCellDef="let characteristicValue">
|
||||
<button mat-icon-button><mat-icon>edit</mat-icon></button>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||
</table>
|
||||
|
@ -0,0 +1,3 @@
|
||||
.mat-column-edit {
|
||||
width: 32px;
|
||||
}
|
@ -15,6 +15,7 @@ export class InheritedItemCharacteristicEditorComponent implements OnInit{
|
||||
@Input() item: Item | undefined
|
||||
|
||||
datasource: MatTableDataSource<ItemgroupCharacteristicValue> = new MatTableDataSource<ItemgroupCharacteristicValue>();
|
||||
displayedColumns: string[] = ['characteristic', 'value', 'edit']
|
||||
|
||||
ngOnInit() {
|
||||
this.item!.initializeItemCharacteristics();
|
||||
|
Loading…
Reference in New Issue
Block a user