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

less elements than the grid size #177

Open
taixes opened this issue Feb 20, 2020 · 0 comments
Open

less elements than the grid size #177

taixes opened this issue Feb 20, 2020 · 0 comments

Comments

@taixes
Copy link

taixes commented Feb 20, 2020

If I have in my carousel less elements than the grid size (example: I have 2 elements and the size is 3):

  • I'd like the current elements to fill the whole carousel, as if the size were 2. I tried to do it updating the variable this.carouselTileConfig.grid = { new values } in ngOnInit but it didn't work at all. Even resetting the carousel, the changes don't take effect.
  • I'd like an option to make the arrows disappear (similar to hideOnSingleSlide: true, but with the arrows). I can get it doing [style.opacity]="myCarousel.isFirst ? 0:1", in NguCarouselPrev, but then it also disappears when I have more elements and I'm at the first slide.

Thank you!

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

No branches or pull requests

2 participants