Back to Website
Show / Hide Table of Contents

Class ResizeItemsCommand

A command that resizes the whole product or only predefined items. For details, you can refer to IDesignEditorDefinitionResizeItems.

{
  "type": "design-editor",
  "name": "editor",
  "params": {
    "initial": { ... },
    "resize": {
       "resizeParams": {
         "targetType": "product",
         "width": "1000",
         "height": "1000",
         "defaultOptions": {
            "resize": 0, // available resize modes: Fit (0, default), Fill (1), Arbitrary (2), Original (3)
            "resetPlaceholderContent": false
          },
          "containerOptions": {
            "Background": {
             "resize": 2, // available resize modes: Fit (0, default), Fill (1), Arbitrary (2), Original (3)
              "resetPlaceholderContent": true
            }
          }
        }
       }
  }
}
Package: ui-framework

Methods

execute(IDesignEditorDefinitionResizeItems)

Executes this command.

Declaration
function execute(params: IDesignEditorDefinitionResizeItems)
Parameters
Type Name Description
IDesignEditorDefinitionResizeItems params

Parameters for the command.

Returns
Type Description
Promise<void>
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