Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to disable swiper for some breakpoints #4311

Closed
jf-viguier opened this issue Mar 9, 2021 · 9 comments
Closed

Add a way to disable swiper for some breakpoints #4311

jf-viguier opened this issue Mar 9, 2021 · 9 comments

Comments

@jf-viguier
Copy link

There is an issue here but I should be great to have an enable/disable method instead of managing init or destroy WDYT ?
#3175

@cb2004
Copy link

cb2004 commented Mar 9, 2021

This is the one thing keeping me going full Swiper. Just for reference, what is the best method to achieve this right now?

@jf-viguier
Copy link
Author

init and destroy at resize time

@cb2004
Copy link

cb2004 commented Mar 9, 2021

@jf-viguier I don't suppose there are any working examples, it seems to be the one thing I cant really find a reference to that works successfully, and all my efforts have failed.

@micka-fdz
Copy link

I think it could be a great feature for a recurring need.
Please add a breakpoint specific parameter (like disable: boolean).

@nolimits4web
Copy link
Owner

You can set allowSlideNext/Prev parameters to disable sliding in breakpoints

@micka-fdz
Copy link

Hi @nolimits4web, I think there's a misunderstanding.
We don't need to disable sliding but to destroy Swiper instance on some breakpoint.

For example, I want to display images below each other on desktop and use Swiper on mobile.

@micka-fdz
Copy link

Please have a look to:

@jf-viguier
Copy link
Author

@nolimits4web why do you close the issue without discussion ? It's seems that is a main issue.

@warudin
Copy link

warudin commented Jul 20, 2021

It's really bugging me that it's quite hard to disable swiper for specific breakpoints.

Repository owner locked and limited conversation to collaborators Jul 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants