Hello,
I have a slideshow and a gallery on a page and I would like the galley to change its content each time a slide is changing.
The gallery is connected to a dataset that connects it to a “Gallery” filed type in the database.
I tried to catch a slide change and filter the dataset but it doesn’t work.
Idea anyone?
here is the code:
export function dynamicSlideshow_change ( event ) {
// This function was added from the Properties & Events panel. To learn more, visit Velo: Working with the Properties & Events Panel | Help Center | Wix.com
// Add your code for this event here:
let index = $w ( “#dynamicSlideshow” ). currentIndex ;
console . log ( "index = " + index );
$w ( "#datasetProject" ). setFilter ( wixData . filter ()
. eq ( "num" , index )
);
}