I have a repeater that is manually populated with data: I want the repeater to only display X records add a time and add a pagination as well, or a way to move between records.
[@carlosgalvarez] Unless you are connecting a dataset you will need to do this in code using onClick events from a previous and next button.
The repeater displays whatever you give it in the data property. So you need to break your manually created data into “pages”. Then assign each “page” of data to the repeater’s data property.
When the relevant onClick event is handled you simply overwrite the data property with your next “page” (or previous) and use forEachItem() to render the data.
If you use a data collection connected to a dataset the. You can wire up the dataset API to do this or via the Wix Editor.
Cheers
Hi Steve, would you have a small code example to implement what you have outlined, please?
Hi Steffen, were you able to solve this issue? If so, do you have any code examples you can share? I’m experiencing the same issue but have been unable to find a solution aside from this thread. Thanks!
Any luck?