forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pgwmodal.d.ts
43 lines (38 loc) · 1.01 KB
/
pgwmodal.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Type definitions for PgwModal 2.0
// Project: http://pgwjs.com/pgwmodal/
// Definitions by: Pine Mizune <https://github.com/pine613>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface PgwModalOption {
content?: string;
target?: string;
url?: string;
title?: string;
titleBar?: boolean;
mainClassName?: string;
backdropClassName?: string;
maxWidth?: number;
angular?: boolean;
modalData?: any;
ajaxOptions?: any;
closable?: boolean;
closeContent?: string;
closeOnEscape?: boolean;
closeOnBackgroundClick?: boolean;
loadingContent?: string;
errorContent?: string;
pushContent?: string;
}
interface PgwModalMethod {
(option: PgwModalOption): boolean;
(action: string): any;
(action: "close"): boolean;
(action: "reposition"): boolean;
(action: "getData"): any;
(action: "isOpen"): boolean;
}
interface ZeptoStatic {
pgwModal: PgwModalMethod;
}
interface JQueryStatic {
pgwModal: PgwModalMethod;
}