From 5ab3f500dfec3ef5affcf1c682e07013541a7679 Mon Sep 17 00:00:00 2001 From: Sathvik Ponangi Date: Sat, 1 Aug 2015 20:04:39 +0530 Subject: [PATCH] Include the custom `timeout` option --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 67639f8..ba26b57 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,8 @@ You can submit the options object like: append: null, prepend: null, manuallyCopyFormValues: true, - deferred: $.Deferred() + deferred: $.Deferred(), + timeout: 250 }); ``` @@ -88,6 +89,13 @@ Currently this plugin supports the following options: - Acceptable-Values: Any valid `jQuery.Deferred` object - Function: A jQuery.Deferred object that is resolved once the print function is called +####timeout + + - Default: `250` + - Acceptable-Values: Time in Milliseconds for `setTimeout` + - 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 + + ## Tested with ### jQuery