-
Notifications
You must be signed in to change notification settings - Fork 88
jQuery.printElement Options
erikzaadi edited this page Sep 13, 2010
·
2 revisions
-
-
- Example
-
$("selector").printElement({printMode:'popup'});
-
- Example
-
$("selector").printElement({pageTitle:'thisWillBeTheNameInThePrintersLog.html'});
-
- Example
-
$("selector").printElement({overrideElementCSS:['thisWillBeTheCSSUsed.css','thisWillBeTheCSSUsedAsWell.css']});
-
- Example
-
$("selector").printElement({printBodyOptions:{styleToAdd:'padding:10px;margin:10px;color:#FFFFFF !important;',classNameToAdd : 'thisWillBeTheClassUsedAsWell'}});
-
- Example
-
$("selector").printElement({leaveOpen:true,printMode:'popup'});
-
- Type:Object
-
Default:
{styleToAdd: ‘position:absolute;width:0px;height:0px;’,classNameToAdd: ’’}
-
Description:
Contains:
<br/>
<strong>styleToAdd : </strong>style attributes to add to the iframe element
<br/>
<strong>classNameToAdd : css class to add to the iframe element</strong>
-
- Example
-
$("selector").printElement({iframeElementOptions:{styleToAdd:'position:absolute;width:0px;height:0px;bottom:0px;',classNameToAdd : 'thisWillBeTheClassUsedAsWell'}});