mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CST-15589] Updated slider implementation in template
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
{{'search.filters.filter.' + filterConfig.name + '.min.label' | translate}}
|
{{'search.filters.filter.' + filterConfig.name + '.min.label' | translate}}
|
||||||
</span>
|
</span>
|
||||||
<input type="text" [(ngModel)]="range[0]" [name]="filterConfig.paramName + '.min'"
|
<input type="text" [(ngModel)]="range[0]" [name]="filterConfig.paramName + '.min'"
|
||||||
class="form-control" (blur)="onSubmit()"
|
class="form-control"
|
||||||
[attr.aria-label]="minLabel"
|
[attr.aria-label]="minLabel"
|
||||||
[placeholder]="minLabel"
|
[placeholder]="minLabel"
|
||||||
/>
|
/>
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
{{'search.filters.filter.' + filterConfig.name + '.max.label' | translate}}
|
{{'search.filters.filter.' + filterConfig.name + '.max.label' | translate}}
|
||||||
</span>
|
</span>
|
||||||
<input type="text" [(ngModel)]="range[1]" [name]="filterConfig.paramName + '.max'"
|
<input type="text" [(ngModel)]="range[1]" [name]="filterConfig.paramName + '.max'"
|
||||||
class="form-control" (blur)="onSubmit()"
|
class="form-control"
|
||||||
[attr.aria-label]="maxLabel"
|
[attr.aria-label]="maxLabel"
|
||||||
[placeholder]="maxLabel"
|
[placeholder]="maxLabel"
|
||||||
/>
|
/>
|
||||||
@@ -33,7 +33,8 @@
|
|||||||
|
|
||||||
<ng-container *ngIf="shouldShowSlider()">
|
<ng-container *ngIf="shouldShowSlider()">
|
||||||
<nouislider [connect]="true" [config]="config" [min]="min" [max]="max" [step]="1"
|
<nouislider [connect]="true" [config]="config" [min]="min" [max]="max" [step]="1"
|
||||||
[dsDebounce]="250" (onDebounce)="onSubmit()"
|
[dsDebounce]="250"
|
||||||
|
(change)="onSliderChange($event)"
|
||||||
(keydown)="startKeyboardControl()" (keyup)="stopKeyboardControl()"
|
(keydown)="startKeyboardControl()" (keyup)="stopKeyboardControl()"
|
||||||
[(ngModel)]="range" ngDefaultControl>
|
[(ngModel)]="range" ngDefaultControl>
|
||||||
</nouislider>
|
</nouislider>
|
||||||
@@ -43,5 +44,8 @@
|
|||||||
<ds-search-facet-range-option *ngFor="let value of page.page; trackBy: trackUpdate" [filterConfig]="filterConfig" [filterValue]="value" [inPlaceSearch]="inPlaceSearch"></ds-search-facet-range-option>
|
<ds-search-facet-range-option *ngFor="let value of page.page; trackBy: trackUpdate" [filterConfig]="filterConfig" [filterValue]="value" [inPlaceSearch]="inPlaceSearch"></ds-search-facet-range-option>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
<button (click)="onSubmit()" class="btn btn-primary">
|
||||||
|
{{'search.filters.search.submit' | translate}}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user