naver / egjs-flicking

🎠 ♻️ Everyday 30 million people experience. It's reliable, flexible and extendable carousel.
https://naver.github.io/egjs-flicking/
MIT License
2.77k stars 128 forks source link

Flicking update method #878

Open kalitk0 opened 3 months ago

kalitk0 commented 3 months ago

How to update or rebuild Flicking when adding or removing panels ?

In Vue2 I have an array with panel elements. How to update Flicking when array is changed? Is there an update method or something ?

malangfox commented 3 months ago

Hello @kalitk0.

The easiest way you can implement this is to use append. You can implement this in a variety of ways. If you are using an array to create the elements inside Flicking, you could also update the array.

In most cases, this should update the new Panels as normal, but if it doesn't work smoothly, you can provide us a demo and we'll check it out.