-
Notifications
You must be signed in to change notification settings - Fork 106
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
Can prev and next buttons be shown when width of the carousel with multiple Items is greater than viewport width? #154
Comments
Any updates on this? I'm running into this issue as well. |
I stumbled upon this too, but still no updates. If you need a quick fix, you can do something like this:
Since the items per breakpoint is configured initially, as:
You can do something like:
and in the template:
you can set it as a getter too. |
@ashashree14 @diosney Sorry the late response, this can be easily achieved by if condition <button
*ngIf="!(myCarousel.isFirst && myCarousel.isLast)"
NguCarouselPrev
class="leftRs"
[style.opacity]="myCarousel.isFirst ? 0.5 : 1">
<
</button> |
This issue has been automatically marked as stale because it has not had recent activity for 6 months. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing this issue due to no activity for 6 months. |
I do not want to show the prev and next buttons like above when my carousel items are visible within viewport.
The buttons should be visible when like below.
Do we have any support from this library?
and in .ts file, config is
The text was updated successfully, but these errors were encountered: