Closed janklubus closed 1 year ago
v3.6.8
Hi, I have multiple sliders on the same page and this is mounted in a loop:
for (var i = 0; i < elms.length; i++) { var splide = new Splide(elms[i], { ... ... } splide.mount(); }
Now I need to dynamically add a slide to all these sliders. If I use the splide.add(html) code, it only adds the slide to the last slider.
splide.add(html)
I tried the destroy and remount method, but it also only works for the last slider.
Can someone help me?
No response
splide.add() adds slide to all instances.
Checks
Version
v3.6.8
Description
Hi, I have multiple sliders on the same page and this is mounted in a loop:
for (var i = 0; i < elms.length; i++) { var splide = new Splide(elms[i], { ... ... } splide.mount(); }
Now I need to dynamically add a slide to all these sliders. If I use the
splide.add(html)
code, it only adds the slide to the last slider.I tried the destroy and remount method, but it also only works for the last slider.
Can someone help me?
Reproduction Link
No response
Steps to Reproduce
Expected Behaviour
splide.add() adds slide to all instances.