Commit fd09be4d authored by Valentin Hervieu's avatar Valentin Hervieu

Update for 2.14

parent 8f7bc9eb
...@@ -27,14 +27,26 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) { ...@@ -27,14 +27,26 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
} }
}; };
$scope.minMaxLimitSlider = {
value: 50,
options: {
floor: 0,
ceil: 100,
step: 1,
minLimit: 10,
maxLimit: 90
}
};
$scope.minRangeSlider = { $scope.minRangeSlider = {
minValue: 10, minValue: 40,
maxValue: 90, maxValue: 60,
options: { options: {
floor: 0, floor: 0,
ceil: 100, ceil: 100,
step: 1, step: 1,
minRange: 10 minRange: 10,
maxRange: 50
} }
}; };
......
...@@ -62,7 +62,16 @@ ...@@ -62,7 +62,16 @@
</article> </article>
<article> <article>
<h2>Range slider with a minimal range set to 10</h2> <h2>Range slider with min limit set to 10 and max limit set to 90</h2>
<rzslider
rz-slider-model="minMaxLimitSlider.value"
rz-slider-options="minMaxLimitSlider.options"
></rzslider>
<show-code js-file="minMaxLimitSlider" html-file="singleSlider"></show-code>
</article>
<article>
<h2>Range slider with a minimal range set to 10 and maximum of 50</h2>
<rzslider <rzslider
rz-slider-model="minRangeSlider.minValue" rz-slider-model="minRangeSlider.minValue"
rz-slider-high="minRangeSlider.maxValue" rz-slider-high="minRangeSlider.maxValue"
......
$scope.slider = {
value: 50,
options: {
floor: 0,
ceil: 100,
step: 1,
minLimit: 10,
maxLimit: 90
}
};
...@@ -5,6 +5,7 @@ $scope.slider = { ...@@ -5,6 +5,7 @@ $scope.slider = {
floor: 0, floor: 0,
ceil: 100, ceil: 100,
step: 1, step: 1,
minRange: 10 minRange: 10,
maxRange: 50
} }
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment