You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a swiper instance that follows the "thumbs gallery" demo here. Works great.
But now I need to programmatically (e.g. in response to an event) remove -- effectively hide or "detach" -- the thumbnail swiper. I realize I could just hide it in CSS, but it would still be in the DOM and swiper would still have to deal with it.
I thought perhaps it would be something like this:
but that didn't work; the two swipers are still working as before. There is no swiper.thumbs.destroy() method like there is for other modules (navigation, pagination, etc.).
Is it possible to programmatically detach a "thumbs" swiper once attached?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a swiper instance that follows the "thumbs gallery" demo here. Works great.
But now I need to programmatically (e.g. in response to an event) remove -- effectively hide or "detach" -- the thumbnail swiper. I realize I could just hide it in CSS, but it would still be in the DOM and swiper would still have to deal with it.
I thought perhaps it would be something like this:
but that didn't work; the two swipers are still working as before. There is no
swiper.thumbs.destroy()
method like there is for other modules (navigation, pagination, etc.).Is it possible to programmatically detach a "thumbs" swiper once attached?
Beta Was this translation helpful? Give feedback.
All reactions