Class: LightboxConfig

.lightbox.LightboxConfig(config)

Lightbox configuration class that handles the configuration parameter.

Constructor

new LightboxConfig(config)

Create the lightbox configuration and set default parameter if not defined.
Parameters:
Name Type Description
config Object Lightbox configuration dictionary.
Properties
Name Type Description
targetElement string | HTMLElement Target HTML element, serves as anchor for the lightbox.
slideOnStartIndex Number | undefined Open lightbox after loading and show a specific slide (starts at zero). Is skipped when undefined.
showShareButton Boolean Hide or show lightbox's sharing feature.
Author:
Source: