Skip to content

Commit b1b9989

Browse files
authored
Merge pull request seiyria#137 from Khopa/master
Added support for bootstrap-slider "rangeHighlights" parameter.
2 parents 2150f30 + 647ef04 commit b1b9989

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

slider.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ angular.module('ui.bootstrap-slider', [])
3030
ticksPositions: '=',
3131
scale: '=',
3232
focus: '=',
33+
rangeHighlights: '=',
3334
formatter: '&',
3435
onStartSlide: '&',
3536
onStopSlide: '&',
@@ -70,6 +71,7 @@ angular.module('ui.bootstrap-slider', [])
7071
setOption('ticks_labels', $scope.ticksLabels);
7172
setOption('ticks_snap_bounds', $scope.ticksSnapBounds);
7273
setOption('ticks_positions', $scope.ticksPositions);
74+
setOption('rangeHighlights', $scope.rangeHighlights);
7375
setOption('scale', $scope.scale, 'linear');
7476
setOption('focus', $scope.focus);
7577

@@ -210,7 +212,7 @@ angular.module('ui.bootstrap-slider', [])
210212
}
211213

212214

213-
var watchers = ['min', 'max', 'step', 'range', 'scale', 'ticksLabels', 'ticks'];
215+
var watchers = ['min', 'max', 'step', 'range', 'scale', 'ticksLabels', 'ticks', 'rangeHighlights'];
214216
angular.forEach(watchers, function (prop) {
215217
$scope.$watch(prop, function () {
216218
slider = initSlider();

0 commit comments

Comments
 (0)