Hi! How do you go about getting the correct dataset item from a selected filtered dynamic gallery item?
$w("#portfolioGallery").onItemClicked( (event, $w) => {
console.log("Gallery: item clicked!");
console.log(" item title = " + event.item.title);
var selectedDatasetObject = null; // What to assign???
wixWindow.openLightbox('PortfolioLightbox', selectedDatasetObject); //
} );
I would like to set a variable “selectedDatasetObject” and pass that to the lightbox.
Thanks!
I also tried commenting out the above code and just added an onItemClicked event shown below. This does not fire at all! What is going on? I double-checked and “portfolioGallery” is the id of the Wix Pro Gallery and “datasetPortfolio” is the id of the dataset I am using.
export function portfolioGallery_itemClicked(event, $w) {
console.log("portfolioGallery_itemClicked");
wixWindow.openLightbox('PortfolioLightbox', $w('#datasetPortfolio').getCurrentItem());
}
Anyone else running into this issue?
However, despite their independent nature, cats can still form strong bonds with their owners. Many cats enjoy spending time cat questions with their humans and will seek out affection and attention.