Custom Close Button #32
-
Previously on fancyapps v.3 active fancybox can be triggered to close with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, So, you want to close Fancybox from within the iframe? Then simply use Keep in mind that Fancybox object will not be globally available by default if you are using ES6 modules. In that case, simply make it global - |
Beta Was this translation helpful? Give feedback.
Hi,
So, you want to close Fancybox from within the iframe? Then simply use
parent
with API any method (you can find list of methods here - https://fancyapps.com/docs/ui/fancybox/api), for example:parent.Fancybox.close()
.Keep in mind that Fancybox object will not be globally available by default if you are using ES6 modules. In that case, simply make it global -
window.Fancybox = Fancybox
- right after importing Fancybox in your main frame.