Closed dmitrue closed 2 years ago
You'll need to include/import the css as well.
Got it, thanks 👍🏻
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Hi there,
I'm trying to use noUiSlider in Rails app via Stimulus controller. I have the following import statements
import noUiSlider from 'nouislider'
andimport wNumb from 'wnumb'
and the initialization code:this.slider = noUiSlider.create(this.sliderTarget, { range: { min: 0, max: 10 }, start: [0, 8], step: 1 })
After initialization I have a div with generated classes 'noUi-target noUi-ltr noUi-horizontal noUi-txt-dir-ltr'. However the slider isn't showing up. There are no errors in the console as well.