add sorting for gallery

This commit is contained in:
2019-11-17 09:36:37 +01:00
parent 73ea635ac1
commit 70fb84d634
14 changed files with 310 additions and 13 deletions

View File

@@ -1,4 +1,27 @@
<div id="gallery" class="card-grid-300">
<div
*ngIf="show"
id="gallery-filters">
<mat-form-field class="pdb-form-wide">
<mat-label>Sort By:</mat-label>
<mat-select [(value)]="sortBy">
<mat-option value="NAME">name</mat-option>
<mat-option value="MAX_VALUE">max value</mat-option>
<mat-option value="AVERAGE">average</mat-option>
<mat-option value="VALUES">#values</mat-option>
<mat-option value="PLOTTED_VALUES">#plotted values</mat-option>
</mat-select>
</mat-form-field>
<div class="pdb-form-icon-small">
<pdb-image-toggle images="{{ascDescImages}}" (valueChanged)="sortOrderChanged($event)"></pdb-image-toggle>
</div>
</div>
<div
*ngIf="show"
id="gallery"
class="card-grid-300">
<pdb-gallery-item-view
*ngFor="let galleryItem of galleryItems" [data]="galleryItem">
</pdb-gallery-item-view>