Skip to content

Close Event ​

Relevant Configuration Options ​

PropertyDescriptionTypeDefault
closeFnCallback function for closingFunction—

closeFn ​

The closeFn option accepts a callback function that is triggered when the plugin is closed. The returned argument is an object params.

params ​

keyDescriptionNotes
typeAction typeprev: previous image
esc: closed via the Esc key
wayTrigger methodcloseBtn: close button
esc: Esc key
mask: clicking the mask