-
-
Notifications
You must be signed in to change notification settings - Fork 454
/
printThis.d.ts
118 lines (98 loc) · 2.13 KB
/
printThis.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
interface JQuery {
printThis(args?: IPrintThisOptions);
}
interface IPrintThisOptions {
/**
* show the iframe for debugging
* default value: false
*/
debug?: boolean,
/**
* import parent page css
* default value: true
*/
importCSS?: boolean,
/**
* import style tags
* default value: false
*/
importStyle?: boolean,
/**
* print outer container/$.selector
* default value: true
*/
printContainer?: boolean,
/**
* path to additional css file - use an array [] for multiple
*/
loadCSS?: string,
/**
* add title to print page
*/
pageTitle?: string,
/**
* remove inline styles from print elements
* default value: false
*/
removeInline?: boolean,
/**
* custom selectors to filter inline styles. removeInline must be true
* default value: "*"
*/
removeInlineSelector?: string,
/**
* variable print delay
* default value: 333
*/
printDelay?: number,
/**
* prefix to html
*/
header?: JQuery | string,
/**
* postfix to html
*/
footer?: JQuery | string,
/**
* preserve the BASE tag or accept a string for the URL
* default value: false
*/
base?: boolean | string,
/**
* preserve input/form values
* default value: true
*/
formValues?: boolean,
/**
* copy canvas content
* default value: false
*/
canvas?: boolean,
/**
* enter a different doctype for older markup
* default value: '<!DOCTYPE html>'
*/
doctypeString?: string,
/**
* remove script tags from print content
* default value: false
*/
removeScripts?: boolean,
/**
* copy classes from the html & body tag
* default value: false
*/
copyTagClasses?: boolean,
/**
* callback function for printEvent in iframe
*/
beforePrintEvent?: Function,
/**
* function called before iframe is filled
*/
beforePrint?: Function,
/**
* function called before iframe is removed
*/
afterPrint?: Function
}