nuka-carousel
nuka-carousel copied to clipboard
Hiding Next and Previous buttons when First or Last items are active
Questions
question : suppose we have const items = [10]; // 10 images on the window we only want to show 3 images. that means for the last image we need to click the next button 2/3 times. so at the time of the last image(10th image ), we don’t have further data (infinite scrolling = false ) so I want to hide the next button in this. user can only see the previous button and vice versa.
I believe you can use a custom renderCenterLeftButton to check for the indexes
This feature is now the default in v8