Commit ac790b87 authored by Valentin Hervieu's avatar Valentin Hervieu

Update demo site with ticksTooltip option

parent b6dd1de1
......@@ -104,6 +104,19 @@ app.controller('MainCtrl', function($scope, $rootScope, $timeout, $modal) {
}
};
//Slider with ticks and tooltip
$scope.slider_ticks_tooltip = {
value: 5,
options: {
ceil: 10,
floor: 0,
showTicks: true,
ticksTooltip: function(v) {
return 'Tooltip for ' + v;
}
}
};
//Slider with ticks and values
$scope.slider_ticks_values = {
value: 5,
......
......@@ -97,6 +97,14 @@
></rzslider>
</article>
<article>
<h2>Slider with ticks and tooltips</h2>
<rzslider
rz-slider-model="slider_ticks_tooltip.value"
rz-slider-options="slider_ticks_tooltip.options"
></rzslider>
</article>
<article>
<h2>Slider with ticks and values (and tooltips)</h2>
<rzslider
......
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