Lightbox methods

init()init()

This method allows to initialize the lightbox attach to a grid. It’s mainly used if you destroy() the instance. Otherwise, there isn’t any reason to init() the lightbox since it’s automatically done by the plugin on load.

JS
Grid settings – JS field
wpgb.lightbox.init();

destroy()destroy()

You can destroy the lightbox instance attached to grid at any time thanks to this method.

JS
Grid settings – JS field
wpgb.lightbox.destroy();

close()close()

This method allows to close the lightbox when opened.

JS
Grid settings – JS field
wpgb.lightbox.close();

resize()resize()

This method allows to resize the lightbox and its content when opened.

JS
Grid settings – JS field
wpgb.lightbox.resize();

next()next()

This method allows to go to the next item when opened.

JS
Grid settings – JS field
wpgb.lightbox.next();

previous()previous()

This method allows to go to the previous item when opened.

JS
Grid settings – JS field
wpgb.lightbox.previous();