Added search for institution bund and eu projects
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<div class="mat-elevation-z8">
|
||||
<table
|
||||
mat-table
|
||||
[dataSource]="dataSource"
|
||||
matSort
|
||||
(matSortChange)="onSortChange($event)">
|
||||
@for (col of columns(); track col.id) {
|
||||
<ng-container [matColumnDef]="col.id">
|
||||
@if (col.type === 'accessor') {
|
||||
<th mat-header-cell *matHeaderCellDef [mat-sort-header]="col.id">
|
||||
{{ col.header }}
|
||||
</th>
|
||||
} @else {
|
||||
<th mat-header-cell *matHeaderCellDef>{{ col.header }}</th>
|
||||
}
|
||||
|
||||
<td mat-cell *matCellDef="let row">
|
||||
@if (col.cellTemplate) {
|
||||
<ng-container
|
||||
*ngTemplateOutlet="
|
||||
col.cellTemplate;
|
||||
context: { $implicit: row }
|
||||
"></ng-container>
|
||||
} @else if (col.type === 'accessor') {
|
||||
{{ row[col.accessorKey] }}
|
||||
}
|
||||
</td>
|
||||
</ng-container>
|
||||
}
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns()"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns()"></tr>
|
||||
</table>
|
||||
@if (this.dataSource.data.length === 0) {
|
||||
<div class="no-data">
|
||||
<span>Keine Daten gefunden.</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
Reference in New Issue
Block a user