Answer the question
In order to leave comments, you need to log in
How to change slide set in vue-slick?
I'm using the vue-slick carousel, which is initialized at startup. There is an "add slide" button, after which you need to "restart" the slider. But nowhere is it said how to do it. I try to use in the method of adding a slide this.$refs.slick.$reSlick()
, nothing happens. How to update the slider?
Answer the question
In order to leave comments, you need to log in
I'm using vue-slick carousel...
There is an "add slide" button, after which you need to "restart" the slider. <...> I try to use in the method of adding a slide this.$refs.slick.$reSlick()
, nothing happens.
$refs.slick.destroy
; then changing the data on which the slide layout is built; and finally, the call $refs.slick.create
wrapped in $nextTick
.Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question