Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Optional selector to support dynamic content. #32

Closed
wants to merge 1 commit into from

Conversation

GolezTrol
Copy link

With this change, you can use the lightbox with dynamic content, without having to re-initialize it when the content is added.
Call is similar to on event, only the selector is passed in the option object argument.

Use as

$(document).lightbox({selector: 'a.lightbox'});

The normal syntax will also still work.

@GolezTrol GolezTrol closed this Sep 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant