Here is a video: https://www.youtube.com/watch?v=M7e1VPM7QO0
The Code:
import wixLocation from 'wix-location';
export function dynamicDataset_ready()
{
$w.onReady(function () {
let enabled1 = $w("#pagination1").enabled; true
let visible1 = $w("#pagination1").isVisible; true
let currentpage1 = $w("#pagination1").currentPage;
let totalpages1 = $w("#pagination1").totalPages =2;
});
$w.onReady(function () {
let enabled2 = $w("#pagination2").enabled; true
let visible2 = $w("#pagination2").isVisible; true
let currentpage2 = $w("#pagination2").currentPage;
let totalpages2 = $w("#pagination2").totalPages =2;
});
}
export function pagination1_click(event)
{
$w("#dynamicDataset").getNextDynamicPage()
.then( (next) => { "game-hints/title"
if(next){
wixLocation.to(next);
}
} );
$w("#dynamicDataset").getPreviousDynamicPage()
.then( (prev) => { "game-hints/title"
if(prev){
wixLocation.to(prev);
}
} );
}
export function pagination2_click(event)
{
$w("#dynamicDataset").getNextDynamicPage()
.then( (next) => { "game-hints/title"
if(next){
wixLocation.to(next);
}
} );
$w("#dynamicDataset").getPreviousDynamicPage()
.then( (prev) => { "game-hints/title"
if(prev){
wixLocation.to(prev);
}
} );
}