Skip to content

I added a download plugin, how to run my custom function when I click the download button? #111

Answered by igordanchenko
tolyle asked this question in Q&A
Discussion options

You must be logged in to vote

I want to complete the download code by myself in the callback function

If that's the case, and you do not want to use the Download plugin functionality, then you should probably implement your own Download button.

https://codesandbox.io/s/yet-another-react-lightbox-111-mbum69?file=/src/App.js

In addition, when the slideshow is playing, I want to add a callback when the play or pause button is clicked, so that I can play music while the slideshow is playing, and when the user clicks pause, my music can also be Pause through callback function.

I'll add these callbacks in the next release.

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@tolyle
Comment options

@tolyle
Comment options

@igordanchenko
Comment options

Answer selected by igordanchenko
@tolyle
Comment options

@igordanchenko
Comment options

@tolyle
Comment options

@tolyle
Comment options

Comment options

You must be logged in to vote
1 reply
@tolyle
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants