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

Dynamic itemsPerSlide on carousel #5723

Open
Avcajaraville opened this issue Mar 20, 2020 · 1 comment · May be fixed by #6249
Open

Dynamic itemsPerSlide on carousel #5723

Avcajaraville opened this issue Mar 20, 2020 · 1 comment · May be fixed by #6249

Comments

@Avcajaraville
Copy link

Is your feature request related to a problem? Please describe.

Due to client requests, we need to be able to switch dynamically itemsPerSlide. The use case would be to have a multilist carousel. For desktop we will have N itemsPerSlide, but on mobile, we just want one slide active at the time.

Describe the solution you'd like

I would like to be able to call a public method on the component that allows me to recalculate all active slides on the screen based on itemsPerSlide variable.

Describe alternatives you've considered

At the moment, itemsPerSlide is read-only on component initialization and never again, was wondering if we could expose a method to actually recompute active slides on the viewport.

@jwbabc
Copy link

jwbabc commented Mar 24, 2021

Would love to get some sort of ETA on this, seems like a much needed feature for a carousel in a responsive environment.
As an alternative, we're going with the following solution...
https://www.npmjs.com/package/ngx-slick-carousel

@SvetlanaMuravlova SvetlanaMuravlova self-assigned this Jul 30, 2021
@SvetlanaMuravlova SvetlanaMuravlova linked a pull request Jul 30, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants