Loop the repeater in wix website editor

Hi everyone, How to put loop function to the repeater (connected to dataset). and also to put thumb scroll and put buttons on the side for next and previous items.

add a button and connect it to the dataset. you can then set the action for that button.

adding a loop would require code, maybe something like this

function nextItem(dataset) {
        if (dataset.hasNext()) {
            dataset.next();
        } else {
            dataset.setCurrentItemIndex(0); 
        }
    }

It doesn’t work. It has 9 items in my dataset but I change it to show only 3 so it will look like a slider and put loop.

ahhhhh…old editor. let me see what is the best option

looks like its not possible with the wix editor

maybe this may help sort of get what you need