Skip to content

showLoading #573

Closed Answered by WebProWWW
WebProWWW asked this question in Q&A
Oct 6, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Got the desired result!
Progress was triggered in the Carousel.createSlide event when a slide was specified without the src parameter, specifying only the type
I don’t know if this is the right solution, but it works :)
I would be very grateful if you could suggest a better solution.

var fancybox = new Fancybox([{
    type: 'inline'
}]);
fancybox.on('Carousel.createSlide', function(fb, carousel, slide) {
    fb.showLoading(slide);
    /*** After ajax is done ***/
    fb.setContent(slide, 'html string');
    fb.hideLoading(slide);
});
2023-10-06.12.19.49.mov

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fancyapps
Comment options

@WebProWWW
Comment options

Answer selected by WebProWWW
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