PrintingScriptAction QML Type
Use this type to add a print action to your extension. More...
Import Statement: | import BrickStore 1.0 |
Properties
- printFunction : string
- text : string
Detailed Description
Property Documentation
printFunction : string |
This property holds a reference to the JavaScript function which should be called for printing. The function is called with three parameters: (job, document, lots)
.
Parameter | Type | Description |
---|---|---|
job | PrintJob | The current print job. |
document | Document | The document that gets printed. |
lots | list<Lot> | The selected lots, or all lots if there is no selection. |
For example, the classic print script looks like this:
PrintingScriptAction { text: "Print: Classic layout" printFunction: printJob } function printJob(job, doc, lots) { ... }
text : string |
The user visible text of the menu entry in the Extras
menu, that triggers the printFunction.
© 2004-2025 Robert Griebl. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. All trademarks are property of their respective owners.