Class: Lightbox

.lightbox.Lightbox(lightboxData, lightboxConfig)

Lightbox class to build a media lightbox using the core functionalities of the photoswipe lightbox. However, the pswp UI is replaced by own UI design, thus own DOM structure and elements (e.g., buttons, text).

Constructor

Creates the lightbox.
Parameters:
Name Type Description
lightboxData Object LightboxData class object.
lightboxConfig Object LightboxConfig class object.
Author:
Source:

Extends

Methods

fire(name, payload)

Fires an event with given name and payload.
Parameters:
Name Type Description
name string
payload object
Overrides:
Source:

off(name)

Unregisters all listeners from an event
Parameters:
Name Type Description
name string
Overrides:
Source:

on(name, listener)

Registers the given listener function for the event name.
Parameters:
Name Type Description
name string
listener function
Overrides:
Source: