Back to Website
Show / Hide Table of Contents

setPrintArea

  • Less than a minute to read

This is an equivalent of the setPrintAreas method from the IFrame API, but only for one surface (either a specified surface or the current surface).

Params

  • data - the same print area definition as used in the setPrintAreas.
  • surfaceIndex - which surface to replace. If omitted, the currently visible surface is modified.
  • options - additional configuration settings. See the ISetPrintAreasOptions for more details.

For the complete list of parameters, you can refer to IDesignEditorDefinitionSetPrintArea.

Example

{
    "type": "design-editor",
    "name": "design-editor",
    "params": {
        "initial": { ... },
        "setPrintArea": [{
            "surfaceIndex": 1,
            "data": {
                "designFile": "{{'demos/cards/'+$['designs']._.title}}"
            },
            "options": {
                "preserveUserChanges": true,
                "updateRevertData": true,
                "updateSurfaceSize": true
            }
        }]
    }
}
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback