Add beforeClose option and isOpened() function

This commit is contained in:
Alain Béarez
2015-12-17 18:24:38 +01:00
parent 78ba6e4154
commit 34034aaf69
+3 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for Drop v0.5.7
// Type definitions for Drop v1.3.0
// Project: http://github.hubspot.com/drop/
// Definitions by: Adi Dahiya <https://github.com/adidahiya>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -26,6 +26,7 @@ declare module drop {
constrainToWindow?: boolean;
constrainToScrollParent?: boolean;
remove?: boolean;
beforeClose?: () => boolean;
tetherOptions?: tether.ITetherOptions;
}
@@ -37,6 +38,7 @@ declare module drop {
close(): void;
remove(): void;
toggle(): void;
isOpened(): boolean;
position(): void;
destroy(): void;
/*