Class AuWidgetPreflightConfig
Provides properties for the preflight widget. For details, you can refer to the Preflight widget topic.
{
"widgets": [{
"name": "preflight",
"type": "preflight",
"params": {
"files": [ "http://example.com/printfiles/flyer.pdf" ],
"config": {
"backendUrl": "http://preflight.example.com",
"startFromUploader": false,
"product": {
"dpi": 300,
"size": {
"width": 595,
"height": 842
},
"bleed": 20,
"safetyLines": [{
"color": "#00ff00",
"altColor": "#00ff00",
"margin": 40
}]
},
"rules": [
{
"type": "colorspace",
"severity": "error",
"enableFix": true,
"params": {
"allowedColorSpaces": [ "cmyk" ]
}
}
],
...
},
"onPageChange": [
"{{ #function(page) page==='editor' && main.stepIndex === 0 ? main.nextStep() : '' }}"
]
}]
}
Package: ui-framework
Properties
config
The preflight configuration. For details, see the Config Reference.
Declaration
config: any
Property Value
Type | Description |
---|---|
any | The preflight configuration. For details, see the Config Reference. |
files
Initializes the widget with files for validation. For details, see the F.A.Q..
Declaration
files: string[]
Property Value
Type | Description |
---|---|
string[] | Initializes the widget with files for validation. For details, see the F.A.Q.. |
onError
A function ({{#function <expression>}}
) or an array of functions that work when errors occur in this widget.
Declaration
onError: Function | Array<Function>
Property Value
Type | Description |
---|---|
Function | Array<Function> | A function ( |
onPageChange
A function ({{#function <expression>}}
) or an array of functions that work when changing pages in this widget.
Declaration
onPageChange: Function | Array<Function>
Property Value
Type | Description |
---|---|
Function | Array<Function> | A function ( |