Page MenuHomec4science

fuseki-table.component.html
No OneTemporary

File Metadata

Created
Sat, Nov 16, 08:52

fuseki-table.component.html

<mat-card>
<mat-card-header>
<mat-card-subtitle>Fuseki Resultate</mat-card-subtitle>
</mat-card-header>
<mat-card-content *ngIf="fusekiResults.results.bindings.length > 0">
<export [displayedColumns]="fusekiResults.head.vars" [exportData]="fusekiResults.results.bindings" [fusekiResults]="fusekiResults"></export>
<table mat-table matSort (matSortChange)="sortData($event)"
[dataSource]="fusekiResults.results.bindings | pageResultFilter:paginatorResultStatus.resultRange" class="mat-elevation-z8">
<ng-container matColumnDef="{{column}}" *ngFor="let column of fusekiResults.head.vars">
<th mat-header-cell mat-sort-header *matHeaderCellDef> {{column}} </th>
<td mat-cell *matCellDef="let element">
<tln-type *ngIf="element[column]" [input]="element[column].value" [routePrefix]="routePrefix"></tln-type>
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="fusekiResults.head.vars"></tr>
<tr mat-row *matRowDef="let element; columns: fusekiResults.head.vars;"></tr>
</table>
<mat-paginator *ngIf="fusekiResults.results.bindings.length > paginatorResultStatus.resultLength"
[length]="fusekiResults.results.bindings.length"
[pageSize]="paginatorResultStatus.resultLength"
[pageSizeOptions]="paginatorResultStatus.pageSizeOptions"
[pageIndex]="paginatorResultStatus.resultIndex"
[showFirstLastButtons]="true"
(page)="paginatorResultStatus.showResults($event)">
</mat-paginator>
</mat-card-content>
</mat-card>

Event Timeline