pathetic attempt to implement a filter for statistics

This commit is contained in:
Marcel-Anker
2025-11-22 11:20:24 +01:00
parent cb5758474e
commit a288b38ee1
6 changed files with 181 additions and 174 deletions

View File

@@ -1,7 +1,19 @@
<app-menu-header label="Statistiken"></app-menu-header>
<div class="table-table-container">
<h2 class="text-2xl font-bold flex flex justify-center gradient-text"> Movie-Statistiken </h2>
<mat-form-field appearance="fill">
<mat-label>Filter</mat-label>
<mat-select (selectionChange)="filterByCategory($event.value)">
<mat-option value="na" class="flex justify-center"></mat-option>
@for(filterValue of valuesToFilter; track $index){
<mat-option [value]="filterValue" class="flex justify-center"> {{filterValue}} </mat-option>
}
</mat-select>
</mat-form-field>
<div class="table-table-container">
<table mat-table [dataSource]="movies" class="example-table">
<ng-container matColumnDef="id">
@@ -37,8 +49,9 @@
<mat-paginator [length]="movieResultsLength" [pageSize]="30" aria-label="Select page of GitHub search results"></mat-paginator>
<div class="show-table-container">
<h2 class="text-2xl font-bold flex flex justify-center gradient-text"> Show-Statistiken </h2>
<div class="show-table-container">
<table mat-table [dataSource]="shows" class="example-table">
<ng-container matColumnDef="id">