-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from daisybio/more_spongeffects_plots
added table with prediction results
- Loading branch information
Showing
13 changed files
with
231 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 20 additions & 14 deletions
34
...app/routes/spongeffects/predict/form/example-file-modal/example-file-modal.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
<div> | ||
<div style="margin: 10px;"> | ||
@if (dataSourceResource.isLoading()) { | ||
<mat-spinner mode="indeterminate"></mat-spinner> | ||
<div style="width: 100%; height: 260px; display: flex; justify-content: center; align-items: center;"> | ||
<mat-spinner mode="indeterminate"></mat-spinner> | ||
</div> | ||
} @else { | ||
@if (!dataSourceResource.value()) { | ||
<p>No data available</p> | ||
} | ||
} | ||
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8"> | ||
<ng-container *ngFor="let key of columns" [matColumnDef]="key"> | ||
<th mat-header-cell *matHeaderCellDef> {{ key }} </th> | ||
<td mat-cell *matCellDef="let element"> {{ element[key] }} </td> | ||
</ng-container> | ||
<tr mat-header-row *matHeaderRowDef="columns"></tr> | ||
<tr mat-row *matRowDef="let row; columns: columns;"></tr> | ||
</table> | ||
<mat-paginator [pageSizeOptions]="[5, 10, 20]" | ||
showFirstLastButtons | ||
aria-label="Select page"> | ||
</mat-paginator> | ||
<div class="table-container" style="overflow: auto; max-height: 320px;"> | ||
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8"> | ||
<ng-container *ngFor="let key of columns; let i = index" [matColumnDef]="key" [sticky]="i === 0"> | ||
<th mat-header-cell *matHeaderCellDef> {{ key }} </th> | ||
<td mat-cell *matCellDef="let element"> {{ element[key] }} </td> | ||
</ng-container> | ||
<tr mat-header-row *matHeaderRowDef="columns; sticky: true"></tr> | ||
<tr mat-row *matRowDef="let row; columns: columns;"></tr> | ||
</table> | ||
</div> | ||
<div style="align-self: bottom; padding-left: 8px; padding-right: 8px;"> | ||
<mat-paginator [pageSizeOptions]="[5, 10, 20]" | ||
showFirstLastButtons | ||
aria-label="Select page"> | ||
</mat-paginator> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/routes/spongeffects/predict/form/predict-form.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<div class="predict-results"> | ||
<app-prediction-results>[refreshSignal$]="refreshSignal()"</app-prediction-results> | ||
<app-prediction-table>[refreshSignal$]="refreshSignal()"</app-prediction-table> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.