Closed HerrSammyDE closed 2 years ago
Hi!
Not as a build in feature, but you can do this using the event system.
You can do something like this (I'm on mobile so the example isn't complete):
slider.noUiSlider.on('update', function(values, handle) {
// (remove active class from current active handle)
// (format value, handle querySelector)
document.querySelector('.noUi-value[data-value="'+ values[handle] +'"]).classList.add('active');
});
Thanks! Would you perhaps have a direct example where this works?
Yeah! I've added this (and #1215) as an example to the documentation:
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.
Hey,
is it possible to set some kind of
active
class on a pip that has just been selected?Here is an example: