-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/range slider improvement (#44)
* add icon, bug fix * bug fixes * bump version * improvement on range slider --------- Co-authored-by: sabrefoxx <[email protected]>
- Loading branch information
1 parent
0a9f336
commit 132808d
Showing
6 changed files
with
44 additions
and
39 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,18 +1,19 @@ | ||
<div class="range-slider" [class.disabled]="disabled"> | ||
<p class="min-max min" [ngStyle]="{'font-size': fontSize}">{{formattedMin}}</p> | ||
<div class="rail-container"> | ||
<div class="rail" #range> | ||
<div class="rld-range-slider" [class.rld-disabled]="disabled"> | ||
<p class="rld-min-max rld-min" [ngStyle]="{'font-size': fontSize}">{{formattedMin}}</p> | ||
<div class="rld-rail-container"> | ||
<input reloadlyInput #input type="number" [min]="min" [max]="max" class="rld-range-input" | ||
(input)="inputChanged($event)" size="small" | ||
[ngStyle]="{'display': showInput ? 'flex' : 'none'}" [disabled]="disabled"> | ||
<div class="rld-rail" #range> | ||
<ng-container *ngIf="showLabel"> | ||
<a class="knob" #knob [reloadly-tooltip]="formattedValue" [position]="'top-center'" | ||
reloadly-tooltip-color="rgb(40,40,40)"></a> | ||
<a class="rld-knob" #knob [reloadly-tooltip]="formattedValue" | ||
[position]="'top-center'" reloadly-tooltip-color="rgb(40,40,40)"></a> | ||
</ng-container> | ||
<ng-container *ngIf="!showLabel"> | ||
<a class="knob" #knob></a> | ||
<a class="rld-knob" #knob></a> | ||
</ng-container> | ||
<div class="slide"></div> | ||
<div class="rld-slide"></div> | ||
</div> | ||
</div> | ||
<p class="min-max max" [ngStyle]="{'font-size': fontSize}">{{formattedMax}}</p> | ||
<input [ngStyle]="{'display': showInput ? 'flex': 'none'}" #input type="number" [min]="min" | ||
[max]="max" class="input" (input)="inputChanged($event)" [disabled]="disabled"> | ||
<p class="rld-min-max rld-max" [ngStyle]="{'font-size': fontSize}">{{formattedMax}}</p> | ||
</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
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