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

Destroy instance but keep slider layout #37

Closed
ban4e opened this issue May 9, 2020 · 3 comments
Closed

Destroy instance but keep slider layout #37

ban4e opened this issue May 9, 2020 · 3 comments

Comments

@ban4e
Copy link

ban4e commented May 9, 2020

The problem is what I need to init slider on mobile devices (using breakpoints), for example. But when I set options destroy: true for desktop it remove all styles that I need. Is any way to save options like gap, perPage with destroy: true without add some css styles?

@Splidejs
Copy link
Collaborator

Splidejs commented May 9, 2020

No, there is no way to save options on destroy. Destroy should remove styles because it is "destroy".

@ban4e
Copy link
Author

ban4e commented May 10, 2020

Okay
I think it will be very helpfull to do option that keeps styles and slider layout, but removes drag, pagination and navigation
P.S. Thanks to awesome slider 👍

@Splidejs
Copy link
Collaborator

In the latest version, "drag" and "pagination" can be disabled by breakpoints. Arrows cannot currently, but they can be hidden by CSS...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant