Skip to content

Commit 5ab3f50

Browse files
author
Sathvik Ponangi
committed
Include the custom timeout option
1 parent a690a4b commit 5ab3f50

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ You can submit the options object like:
3434
append: null,
3535
prepend: null,
3636
manuallyCopyFormValues: true,
37-
deferred: $.Deferred()
37+
deferred: $.Deferred(),
38+
timeout: 250
3839
});
3940
```
4041
@@ -88,6 +89,13 @@ Currently this plugin supports the following options:
8889
- Acceptable-Values: Any valid `jQuery.Deferred` object
8990
- Function: A jQuery.Deferred object that is resolved once the print function is called
9091
92+
####timeout
93+
94+
- Default: `250`
95+
- Acceptable-Values: Time in Milliseconds for `setTimeout`
96+
- Function: To change the amount of time to wait for the content, etc to load before printing the element from the new window/iframe created
97+
98+
9199
## Tested with
92100
93101
### jQuery

0 commit comments

Comments
 (0)