Commit 3a65e308 authored by Valentin Hervieu's avatar Valentin Hervieu

Update demo site with noSwitching option

parent c650cf2a
......@@ -38,6 +38,18 @@ app.controller('MainCtrl', function ($scope, $rootScope, $timeout, $modal) {
}
};
//Range slider with noSwitching config
$scope.noSwitchingSlider = {
minValue: 10,
maxValue: 90,
options: {
floor: 0,
ceil: 100,
step: 1,
noSwitching: true
}
};
//Slider with selection bar
$scope.slider_visible_bar = {
value: 10,
......
......@@ -71,6 +71,16 @@
<show-code js-file="minRangeSlider" html-file="rangeSlider"></show-code>
</article>
<article>
<h2>Range slider with noSwitching=true</h2>
<rzslider
rz-slider-model="noSwitchingSlider.minValue"
rz-slider-high="noSwitchingSlider.maxValue"
rz-slider-options="noSwitchingSlider.options"
></rzslider>
<show-code js-file="noSwitchingSlider" html-file="rangeSlider"></show-code>
</article>
<article>
<h2>Slider with visible selection bar</h2>
<rzslider
......
$scope.slider = {
minValue: 10,
maxValue: 90,
options: {
floor: 0,
ceil: 100,
step: 1,
noSwitching: true
}
};
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