Skip to content

Commit 1b2ccbe

Browse files
committed
expose labels on scope
1 parent d543e52 commit 1b2ccbe

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

dist/rzslider.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v4.0.2 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2016-06-07 */
4+
2016-06-23 */
55
.rzslider {
66
position: relative;
77
display: inline-block;

dist/rzslider.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*! angularjs-slider - v4.0.2 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
4-
2016-06-07 */
4+
2016-06-23 */
55
/*jslint unparam: true */
66
/*global angular: false, console: false, define, module */
77
(function(root, factory) {
@@ -762,7 +762,7 @@
762762
label.rzsv = valStr;
763763
}
764764

765-
label.html(valStr);
765+
this.scope[which + 'Label'] = valStr
766766

767767
// Update width only when length of the label have changed
768768
if (getDimension) {
@@ -2088,7 +2088,7 @@
20882088
'use strict';
20892089

20902090
$templateCache.put('rzSliderTpl.html',
2091-
"<div class=rzslider><span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=\"rz-bar rz-selection\" ng-style=barStyle></span></span> <span class=\"rz-pointer rz-pointer-min\" ng-style=minPointerStyle></span> <span class=\"rz-pointer rz-pointer-max\" ng-style=maxPointerStyle></span> <span class=\"rz-bubble rz-limit rz-floor\"></span> <span class=\"rz-bubble rz-limit rz-ceil\"></span> <span class=rz-bubble></span> <span class=rz-bubble></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat=\"t in ticks track by $index\" class=rz-tick ng-class=\"{'rz-selected': t.selected}\" ng-style=t.style ng-attr-uib-tooltip=\"{{ t.tooltip }}\" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body=\"{{ t.tooltip ? true : undefined}}\"><span ng-if=\"t.value != null\" class=rz-tick-value ng-attr-uib-tooltip=\"{{ t.valueTooltip }}\" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span> <span ng-if=\"t.legend != null\" class=rz-tick-legend>{{ t.legend }}</span></li></ul></div>"
2091+
"<div class=rzslider><span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=\"rz-bar rz-selection\" ng-style=barStyle></span></span> <span class=\"rz-pointer rz-pointer-min\" ng-style=minPointerStyle></span> <span class=\"rz-pointer rz-pointer-max\" ng-style=maxPointerStyle></span> <span class=\"rz-bubble rz-limit rz-floor\">{{floorLabel}}</span> <span class=\"rz-bubble rz-limit rz-ceil\">{{ceilLabel}}</span> <span class=rz-bubble>{{modelLabel}}</span> <span class=rz-bubble>{{highLabel}}</span> <span class=rz-bubble>{{modelLabel}}-{{highLabel}}</span><ul ng-show=showTicks class=rz-ticks><li ng-repeat=\"t in ticks track by $index\" class=rz-tick ng-class=\"{'rz-selected': t.selected}\" ng-style=t.style ng-attr-uib-tooltip=\"{{ t.tooltip }}\" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body=\"{{ t.tooltip ? true : undefined}}\"><span ng-if=\"t.value != null\" class=rz-tick-value ng-attr-uib-tooltip=\"{{ t.valueTooltip }}\" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span> <span ng-if=\"t.legend != null\" class=rz-tick-legend>{{ t.legend }}</span></li></ul></div>"
20922092
);
20932093

20942094
}]);

dist/rzslider.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rzSliderTpl.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</span> <!-- // 1 Highlight between two handles -->
66
<span class="rz-pointer rz-pointer-min" ng-style=minPointerStyle></span> <!-- // 2 Left slider handle -->
77
<span class="rz-pointer rz-pointer-max" ng-style=maxPointerStyle></span> <!-- // 3 Right slider handle -->
8-
<span class="rz-bubble rz-limit rz-floor"></span> <!-- // 4 Floor label -->
9-
<span class="rz-bubble rz-limit rz-ceil"></span> <!-- // 5 Ceiling label -->
10-
<span class="rz-bubble"></span> <!-- // 6 Label above left slider handle -->
11-
<span class="rz-bubble"></span> <!-- // 7 Label above right slider handle -->
12-
<span class="rz-bubble"></span> <!-- // 8 Range label when the slider handles are close ex. 15 - 17 -->
8+
<span class="rz-bubble rz-limit rz-floor">{{floorLabel}}</span> <!-- // 4 Floor label -->
9+
<span class="rz-bubble rz-limit rz-ceil">{{ceilLabel}}</span> <!-- // 5 Ceiling label -->
10+
<span class="rz-bubble">{{modelLabel}}</span> <!-- // 6 Label above left slider handle -->
11+
<span class="rz-bubble">{{highLabel}}</span> <!-- // 7 Label above right slider handle -->
12+
<span class="rz-bubble">{{modelLabel}}-{{highLabel}}</span> <!-- // 8 Range label when the slider handles are close ex. 15 - 17 -->
1313
<ul ng-show="showTicks" class="rz-ticks"> <!-- // 9 The ticks -->
1414
<li ng-repeat="t in ticks track by $index" class="rz-tick"
1515
ng-class="{'rz-selected': t.selected}" ng-style="t.style"

src/rzslider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@
766766
label.rzsv = valStr;
767767
}
768768

769-
label.html(valStr);
769+
this.scope[which + 'Label'] = valStr
770770

771771
// Update width only when length of the label have changed
772772
if (getDimension) {

0 commit comments

Comments
 (0)