mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Update drop typings for Drop v0.5.7
This commit is contained in:
parent
cb08e83dd8
commit
a585282c8a
@ -10,7 +10,10 @@ var d = new Drop({
|
||||
constrainToWindow: true,
|
||||
constrainToScrollParent: true,
|
||||
classes: "",
|
||||
tetherOptions: {}
|
||||
tetherOptions: {},
|
||||
remove: true,
|
||||
target: yellowBox,
|
||||
content: greenBox
|
||||
});
|
||||
|
||||
d.open();
|
||||
@ -26,3 +29,8 @@ d.once("close", () => null);
|
||||
d.off("close", () => null);
|
||||
d.off("open");
|
||||
|
||||
var e = new Drop({
|
||||
target: yellowBox,
|
||||
content: () => greenBox
|
||||
});
|
||||
|
||||
|
||||
4
drop/drop.d.ts
vendored
4
drop/drop.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
// Type definitions for Drop v0.5
|
||||
// Type definitions for Drop v0.5.7
|
||||
// Project: http://github.hubspot.com/drop/
|
||||
// Definitions by: Adi Dahiya <https://github.com/adidahiya>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@ -19,7 +19,7 @@ declare module drop {
|
||||
|
||||
interface IDropOptions {
|
||||
target?: Element;
|
||||
content?: Element | string | (() => string);
|
||||
content?: Element | string | ((drop?: Drop) => string) | ((drop?: Drop) => Element);
|
||||
position?: string;
|
||||
openOn?: string;
|
||||
constrainToWindow?: boolean;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user