hi there,
to reduce load time and page counts i’d like to switch between items without reloading the whole page.
i found that you can assign a button with the “next” function wich would just load the next item.
Thats exactly what i want.
Well i have 4 items so i want to switch to another one using 4 buttons (preferably using a repeater but without reloading the whole page).
How to do this?
If you have a repeater you can easily assign what items you want to use and see using the .data parameter in the repeater. Read about repeaters and the .data here Repeater - Velo API Reference - Wix.com.
If you have a dataset showing just one item at a time you can easily switch records using the datasets function .next like below code.
$w("#myDataset").next() .then( (item) => { let fieldValue = item.fieldName; } )
Read more on wix-dataset - Velo API Reference - Wix.com