Merge pull request #2901 from sacproj/showPreview

Expose preview management functions
This commit is contained in:
Hakim El Hattab 2021-05-05 10:05:55 +02:00 committed by GitHub
commit 48598cb547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2500,6 +2500,10 @@ export default function( revealElement, options ) {
loadSlide: slideContent.load.bind( slideContent ), loadSlide: slideContent.load.bind( slideContent ),
unloadSlide: slideContent.unload.bind( slideContent ), unloadSlide: slideContent.unload.bind( slideContent ),
// Preview management
showPreview,
hidePreview: closeOverlay,
// Adds or removes all internal event listeners // Adds or removes all internal event listeners
addEventListeners, addEventListeners,
removeEventListeners, removeEventListeners,