Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching the gallery from an external button #7

Closed
dreamzsiva opened this issue Mar 24, 2014 · 3 comments
Closed

Launching the gallery from an external button #7

dreamzsiva opened this issue Mar 24, 2014 · 3 comments

Comments

@dreamzsiva
Copy link

I absolutely love this plugin, its simple to use and looks gorgeous!
Can I launch the gallery by clicking a button which is outside the div containing the images on the same page?

Click to launch gallery

  • img
  • img

thanks

@sachinchoolur
Copy link
Owner

Hi

method 1 (trigger click).
while clicking on the launch button you can trigger click for the first li.
example http://jsfiddle.net/sachin377/QQpdL/4/

method 2 (Load Dynamically).
please go threw the example http://sachinchoolur.github.io/lightGallery/examples.html#dynamicBlock
jsfiddle > http://jsfiddle.net/sachin377/Zf4UQ/3/

you can use any of these methods for solving your issue.

Regards,
Sachin

@dreamzsiva
Copy link
Author

Thanks Sachin! That worked.

@dougfabris
Copy link

Thank you so much Sachin! That worked and save me

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

No branches or pull requests

3 participants