Replies: 1 comment 1 reply
-
Hi, Here is one possible solution: Fancybox.bind("[data-fancybox]", {
Thumbs : {
Carousel : {
on: {
"*": (carousel, eventName, slide) => {
if (eventName === "createSlide") {
let div = document.createElement("div");
div.innerHTML = 'Hello';
slide.el.append(div);
}
},
},
}
}
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is it possible to add some custom HTML in the thumbs when i call appendSlide? I have some slides in which I want to display a icon on top of the thumb as they are third-party dynamically loaded images.
Beta Was this translation helpful? Give feedback.
All reactions