Skip to content
Snippets Groups Projects
Commit 52570933 authored by Radek Puš's avatar Radek Puš
Browse files

přidáno pole pro tlačítko smazat u souborů

parent d8a32996
No related branches found
No related tags found
No related merge requests found
...@@ -9,15 +9,15 @@ ...@@ -9,15 +9,15 @@
   
<!-- Name Column --> <!-- Name Column -->
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef> Name </th> <th mat-header-cell *matHeaderCellDef> Název </th>
<td mat-cell *matCellDef="let element"> {{element.name}} </td> <td mat-cell *matCellDef="let element"> {{element.name}} </td>
</ng-container> </ng-container>
   
<!-- Symbol Column --> <!--Delete Column-->
<!--<ng-container matColumnDef="symbol"> <ng-container matColumnDef="delete">
<th mat-header-cell *matHeaderCellDef> Symbol </th> <th mat-header-cell *matHeaderCellDef> Smazat </th>
<td mat-cell *matCellDef="let element"> {{element.symbol}} </td> <td mat-cell *matCellDef="let element"> {{element.symbol}} </td>
</ng-container>--> </ng-container>
   
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
......
...@@ -13,7 +13,7 @@ export class FileHistoryComponent implements OnInit { ...@@ -13,7 +13,7 @@ export class FileHistoryComponent implements OnInit {
@ViewChild(MatPaginator, { static: true }) @ViewChild(MatPaginator, { static: true })
paginator: MatPaginator; paginator: MatPaginator;
dataSource: MatTableDataSource<File>; dataSource: MatTableDataSource<File>;
displayedColumns: string[] = ['position', 'name']; displayedColumns: string[] = ['position', 'name', 'delete'];
   
ngOnInit() { ngOnInit() {
this.dataSource.paginator = this.paginator; this.dataSource.paginator = this.paginator;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment