Constructor
new Lightbox(lightboxData, lightboxConfig)
Creates the lightbox.
Parameters:
Name | Type | Description |
---|---|---|
lightboxData |
Object | LightboxData class object. |
lightboxConfig |
Object | LightboxConfig class object. |
- 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: