🤖 Merge PR #62587 Add "destroy" to FlickityEvents type by @mariashipkova

This commit is contained in:
Maria Shipkova
2022-10-06 16:15:53 +02:00
committed by GitHub
parent 0a09449a6f
commit 99e22ccf1e
2 changed files with 9 additions and 1 deletions

View File

@@ -131,6 +131,10 @@ function handleIsFullScreen(isFullscreen: boolean): void {
flikty2.on("fullscreenChange", handleIsFullScreen);
flikty2.off("fullscreenChange", handleIsFullScreen);
flikty2.on('destroy', () => {
// do something
});
// static get data methods
let jQdata = jQuery.fn.data("flickity")();

View File

@@ -76,7 +76,11 @@ declare namespace Flickity {
/**
* Triggered when the selected slide is changed.
*/
"change";
"change" |
/**
* Triggered when Flickity functionality has been removed completely
*/
"destroy";
interface Options {
/**
* Specify selector for cell elements. cellSelector is useful if you have other elements in your gallery elements that are not cells.