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
Hello!
Thank you all for developing swiper! I'm pretty new to JS, so in advance sorry for asking basic questions.
I have a layout with nested swipers, pretty much exactly the same as in the demo. Parent and child swipers have different parameters and they are separated like this:
var swiper = new Swiper(".mySwiper", {
... parameters,
}
var swiper2 = new Swiper(".mySwiper2", {
... parameters,
}
By toggling a button I want to disable both swipers simultaneously. So far I was able to disable only the parent swiper with a function that contains: swiper.disable(swiper);
To disable child swipers I tried swiper2.disable(), and swiper.disable(swiper2), but that didn't work. I don't know if this is me not knowing how to do simple stuff, or accessing nested swiper require some not obvious logic that is not in API documentation.
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.
-
Hello!
Thank you all for developing swiper! I'm pretty new to JS, so in advance sorry for asking basic questions.
I have a layout with nested swipers, pretty much exactly the same as in the demo. Parent and child swipers have different parameters and they are separated like this:
By toggling a button I want to disable both swipers simultaneously. So far I was able to disable only the parent swiper with a function that contains:
swiper.disable(swiper);
To disable child swipers I tried
swiper2.disable()
, andswiper.disable(swiper2)
, but that didn't work. I don't know if this is me not knowing how to do simple stuff, or accessing nested swiper require some not obvious logic that is not in API documentation.Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions