Pro Gallery : how to trigger event in 'expand mode' ?

Hi there,

I would like to trigger a lightbox inside the ProGallery Expand mode (explaining usage of keyboard’s arrows and spacebar).

This code triggers the lightbox, but on the Progallery main page, not in the Expand mode page. Same problem with Text box and without Timeout.

Any solution/help ?

import wixWindow from ‘wix-window’;
$w.onReady(function () {
$w(’ #gallery1 ').onItemClicked((event)=> {
setTimeout(function() {
}, 1000);

Thank You,

As far as I know, it’s not possible to determine the mode using code. See the Gallery API for details. In addition, not all Galleries support all of the API functions. The Pro Gallery is limited regarding the functions.

You might consider taking another approach demonstrated in the Change Layout example.