Commit c650cf2a authored by Valentin Hervieu's avatar Valentin Hervieu

update demo site with latest options

parent e2144e60
...@@ -17,7 +17,7 @@ app.controller('MainCtrl', function ($scope, $rootScope, $timeout, $modal) { ...@@ -17,7 +17,7 @@ app.controller('MainCtrl', function ($scope, $rootScope, $timeout, $modal) {
}; };
//Range slider config //Range slider config
$scope.minRangeSlider = { $scope.rangeSlider = {
minValue: 10, minValue: 10,
maxValue: 90, maxValue: 90,
options: { options: {
...@@ -27,6 +27,17 @@ app.controller('MainCtrl', function ($scope, $rootScope, $timeout, $modal) { ...@@ -27,6 +27,17 @@ app.controller('MainCtrl', function ($scope, $rootScope, $timeout, $modal) {
} }
}; };
$scope.minRangeSlider = {
minValue: 10,
maxValue: 90,
options: {
floor: 0,
ceil: 100,
step: 1,
minRange: 10
}
};
//Slider with selection bar //Slider with selection bar
$scope.slider_visible_bar = { $scope.slider_visible_bar = {
value: 10, value: 10,
......
...@@ -51,8 +51,18 @@ ...@@ -51,8 +51,18 @@
<article> <article>
<h2>Range slider</h2> <h2>Range slider</h2>
Min Value: <input type="number" ng-model="minRangeSlider.minValue"/><br/> Min Value: <input type="number" ng-model="rangeSlider.minValue"/><br/>
Max Value: <input type="number" ng-model="minRangeSlider.maxValue"/><br/> Max Value: <input type="number" ng-model="rangeSlider.maxValue"/><br/>
<rzslider
rz-slider-model="rangeSlider.minValue"
rz-slider-high="rangeSlider.maxValue"
rz-slider-options="rangeSlider.options"
></rzslider>
<show-code js-file="rangeSlider" html-file="rangeSlider"></show-code>
</article>
<article>
<h2>Range slider with a minimal range set to 10</h2>
<rzslider <rzslider
rz-slider-model="minRangeSlider.minValue" rz-slider-model="minRangeSlider.minValue"
rz-slider-high="minRangeSlider.maxValue" rz-slider-high="minRangeSlider.maxValue"
......
...@@ -4,6 +4,7 @@ $scope.slider = { ...@@ -4,6 +4,7 @@ $scope.slider = {
options: { options: {
floor: 0, floor: 0,
ceil: 100, ceil: 100,
step: 1 step: 1,
minRange: 10
} }
}; };
\ No newline at end of file
$scope.slider = {
minValue: 10,
maxValue: 90,
options: {
floor: 0,
ceil: 100,
step: 1
}
};
\ No newline at end of file
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