Hello, I want to accomplish something fairly simple but I can’t seem to find the right functions in Corvid.
Image an image gallery with id #myGallery.
Typically, if you click on a gallery, it opens the gallery in a popup, where you can swipe left/right through the images.
I want a button that also opens the gallery popup when clicking. I tried adding a javascript function ‘openGalleryPopup()’ for the onClick of the button that like shown below. However, there doesn’t seem to be a method on the Gallery object to trigger the popup. Is this possible at all?
export function openGalleryPopup(event) {
console.log(‘trying to open gallery popup’);
$w(‘#myGallery’).???;
}
Thanks for your help