nuka-carousel icon indicating copy to clipboard operation
nuka-carousel copied to clipboard

Hiding Next and Previous buttons when First or Last items are active

Open kuldeepDamco opened this issue 2 years ago • 1 comments

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.

kuldeepDamco avatar Jul 14 '23 12:07 kuldeepDamco

I believe you can use a custom renderCenterLeftButton to check for the indexes

danilofuchs avatar Aug 30 '23 13:08 danilofuchs

This feature is now the default in v8

carbonrobot avatar Apr 05 '24 18:04 carbonrobot