Skip to content

Conversation

@ValYouW
Copy link
Contributor

@ValYouW ValYouW commented Apr 3, 2017

Hi,

Added events to be fired before opening the lightbox and before closing the lightbox.
The lightboxWillOpen event passes as arg the relevant image index. This is necessary when using the customControls property of lightbox, we need to know what is the current displayed image so any operation from the custom controls will be run on it.

The lightboxWillClose event is... not necessary but added if for the sake of completion :)
Thx

@benhowell benhowell merged commit 6ba5678 into benhowell:master Apr 3, 2017
@benhowell
Copy link
Owner

Thanks very much @ValYouW. Merged!
Your additions have been released in v0.3.1 👍

@ValYouW
Copy link
Contributor Author

ValYouW commented Apr 4, 2017

@benhowell Thank you

@benhowell
Copy link
Owner

@ValYouW FYI... at least one person has found lightboxWillClose necessary... you just never know!
#34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants