I'm a huge fan of Fancybox and I'm using it for years now. At the moment I'm thinking of installing the newest version and I want to use the confirm dialog that is demoed on the project page of Fancybox 3 (https://fancyapps.com/fancybox/3/). But I don't understand how to do this. Where can I find settings for this, how to initiate the dialog and where does the content that is in the dialog come from?
How to implement the confirm dialog from Fancybox 3?
598 views Asked by AudioBubble At
1
Basically, you display some inline content as usual and then use
afterClosecallback to check what element was clicked to close the modal (tip: adddata-fancybox-closeattribute to any element to act as close button), something like this:Here is a more complete code - https://codepen.io/fancyapps/pen/YRPoVB?editors=1010 - that is used on the homepage.