meteor add matdu:meteor-materialize-nouislider
Uses the custom noUiSliderlibrary from Materialize
.
Add the to your onRendered (blaze) or componentDidMount (react).
##Example ###Blaze
Template["name"].onRendered(function(){
var slider = document.getElementById('slider');
noUiSlider.create(slider, {
start: [20, 80],
connect: true,
step: 1,
range: {
'min': 0,
'max': 100
}
});
})
Checkout the noUISlider project at https://github.com/leongersen/noUiSlider/stargazers for a more detailed documention.
Pull requests are ALWAYS appreciated! Thank you for your support!