Greetings fellow meteorites!
Trying to get BootstrapSlider working in a blaze meteor template. I’m currently importing from a node module but the events such as slide, change don’t work even though I am following the syntax the documentation gives.
import 'bootstrap-slider';
import 'bootstrap-slider/dist/css/bootstrap-slider.min.css';
Template.slider.onRendered(()=>{
let currentSlider = this.$('.slider').slider({
min : 0,
max : 100,
step : 1,
value : 5 ,
tooltip : 'show'
})
const something = ()=>{
console.log(`YO!!!`)
}
currentSlider.slider().on('slide', something).data('slider');
currentSlider.slider().on('change', function(changeEvt){
console.log(`changeeee`)
})
console.log(`CURRENT SLIDER JQUERY OBJECT ? : ${currentSlider instanceof jQuery}`)
});
I’m just following the syntax I see here https://github.com/seiyria/bootstrap-slider/blob/master/tpl/index.tpl
But it’s not working. Anybody see what I’m doing wrong ?
Appreciate the help big time Alex