forked from Bogdan1975/ng2-slider-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ng2-slider.component.html
64 lines (63 loc) · 2.24 KB
/
ng2-slider.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<div class="slider-input-block">
<input type="number"
id="{{id + '-start-value'}}"
npm publish
name="{{id + '-start-value'}}"
[step]="stepValue"
[min]="min"
[max]="max"
[(ngModel)]="startValue"
(change)="valueChanged($event, 0)"
#startInput
/>
</div>
<div *ngIf="isRange" class="slider-input-block">
<input type="number"
id="{{id + '-end-value'}}"
class="slider-input-box"
name="{{id + '-end-value'}}"
[step]="stepValue"
[min]="min"
[max]="max"
[(ngModel)]="endValue"
(change)="valueChanged($event, 1)"
#endInput
/>
</div>
<div style="clear:both; position:relative;"
class="slider-container ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all"
styled
[styleBlock] = "['{height: 26px; margin-top: 7px; margin-bottom: 12px}', '.slider-handle {box-sizing: content-box;}']">
<div #ribbon
id="{{id + '-ribbon'}}"
class="range-ribbon ui-slider-range ui-widget-header ui-corner-all">
</div>
<span #start
slideAble
slideDirection="horisontal"
boundElement="{{id + '-ribbon'}}"
dynamicRightLimit="{{(isRange == true) ? id + '-right-handle' : null}}"
(onStopSliding)="onStopSliding($event)"
(onSliding)="onSliding($event)"
(onInit)="initHandlers('Start', $event)"
[id]="id + '-left-handle'"
[parent]="instance"
[step]="stepX"
class="slider-handle ui-slider-handle ui-state-default ui-corner-all"
tabindex="0"
style="left: 0%;"></span>
<span *ngIf="isRange"
#end
slideAble
slideDirection="horisontal"
boundElement="{{id + '-ribbon'}}"
[dynamicLeftLimit]="id + '-left-handle'"
(onStopSliding)="onStopSliding($event)"
(onSliding)="onSliding($event)"
(onInit)="initHandlers('End', $event)"
[id]="id + '-right-handle'"
[step]="stepX"
class="slider-handle ui-slider-handle ui-state-default ui-corner-all"
tabindex="0"
style="left: 100%;"></span>
</div>