Angular.js directive for popular jquery plugin ionRangeSlider with updatable attributes
Specify 'ionSlider' as the dependency of your module.
In your html use
<ionslider></ionslider>
Following attributes can be used inside tag:
min, (updatable)
max, (updatable)
type,
prefix,
max-postfix,
prettify,
grid,
grid-margin,
postfix,
step,
disable, (updatable)
hide-min-max,
hide-from-to,
from (updatable)
You can also set the change event in the tag
<ionslider on-change='rangeChangeCallback'></ionslider>
In your controller
$scope.rangeChangeCallback = function(sliderObj){ var changedValue = sliderObj.from; }
To get notified when the User releases the handle, add a event handler function like this:
<ionslider on-finish='rangeFinishCallback'></ionslider>
In your controller
$scope.rangeFinishCallback = function(sliderObj){ var newValue = sliderObj.from; }
<ionslider type="single"
grid=true
min="model.min"
max="model.max"
from="model.currentValue"
disable="model.disabled"
on-change="rangeChangeCallback"
on-finish="rangeFinishCallback"></ionslider>