public class PrintOptions extends Options
| Modifier and Type | Field and Description |
|---|---|
String |
append
Adds custom HTML after the selected content.
|
String |
doctype
Prepends a doctype to the printed document frame.
|
Boolean |
globalStyles
Whether or not the styles from the parent document should be included.
|
Boolean |
iframe$boolean
Whether to print from an iframe instead of a pop-up window.
|
String |
iframe$selector
Selector of an existing iframe to use for printing.
|
Boolean |
manuallyCopyFormValues
If true, copy user-updated form input values onto the printed markup (this is done by
manually iterating over each form element).
|
Boolean |
mediaPrint
Whether or not link tags with media='print' should be included; Overridden by the
globalStyles option.
|
String |
noPrintSelector
A selector for the items that are to be excluded from printing.
|
String |
prepend
Adds custom HTML before the selected content.
|
String |
selector
Selector for the root element to print.
|
String |
stylesheet
URL of an external stylesheet to be included.
|
Integer |
timeout
The maximum amount of time, in milliseconds, to wait for the content, etc.
|
String |
title
Text to use for print title.
|
| Constructor and Description |
|---|
PrintOptions() |
@Option public String append
@Option public String doctype
Default: "<!doctype html>"
@Option public Boolean globalStyles
Default: true
@Option(value="iframe") public Boolean iframe$boolean
Default: true
@Option(value="iframe") public String iframe$selector
@Option public Boolean manuallyCopyFormValues
Default: true
@Option public Boolean mediaPrint
Default: false
@Option public String noPrintSelector
Default: ".no-print"
@Option public String prepend
@Option public String selector
@Option public Integer timeout
Default: 750
Copyright © 2018 Fujion Framework. All rights reserved.