---
title: "au-widget-design-editor/Commands/command | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.command/"
---

# au-widget-design-editor/Commands/command

> Represents a DesignEditor action.

## Classes

### `abstract` DesignEditorWidgetCommand

#### Extended by

- [`ChangeDesignVariantCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.change-design-variant-command.md#changedesignvariantcommand)
- [`ChangeMockupCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.change-mockup-command.md#changemockupcommand)
- [`CreateImageItemCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.create-image-item-command.md#createimageitemcommand)
- [`DuplicateSurfacesCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.duplicate-surfaces-command.md#duplicatesurfacescommand)
- [`InitialCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.initial-command.md#initialcommand)
- [`LoadUserInfoCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.load-user-info-command.md#loaduserinfocommand)
- [`ModifyItemsCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.modify-items-command.md#modifyitemscommand)
- [`ResizeItemsCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.resize-items-command.md#resizeitemscommand)
- [`SetBackgroundCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.set-background-command.md#setbackgroundcommand)
- [`SetPrintAreaCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.set-print-area-command.md#setprintareacommand)
- [`SetRemoteMockupCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.set-remote-mockup-command.md#setremotemockupcommand)
- [`SetSerializedProduct`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.set-serialized-product.md#setserializedproduct)
- [`SetSurfacesCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.set-surfaces-command.md#setsurfacescommand)
- [`SetThemeCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.set-theme-command.md#setthemecommand)
- [`SetViewerSettings`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.set-viewer-settings.md#setviewersettings)
- [`SwapSurfacesCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.swap-surfaces-command.md#swapsurfacescommand)
- [`TranslateItemsCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.translate-items-command.md#translateitemscommand)
- [`UpdateContainerSettingsCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.update-container-settings-command.md#updatecontainersettingscommand)
- [`UpdateItems`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.update-items.md#updateitems)
- [`UpdateSurfacesCommand`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.Commands.update-surfaces-command.md#updatesurfacescommand)

#### Methods

##### execute()

```ts
abstract execute(params, oldParams?): Promise<any>;
```

Executes a command.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `params` | \| [`IDesignEditorCommandDefinition`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.IAuWidgetDesignEditor.md#idesigneditorcommanddefinition) \| [`IDesignEditorCommandDefinition`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.IAuWidgetDesignEditor.md#idesigneditorcommanddefinition)[] | Parameters for the command. |
| `oldParams?` | \| [`IDesignEditorCommandDefinition`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.IAuWidgetDesignEditor.md#idesigneditorcommanddefinition) \| [`IDesignEditorCommandDefinition`](https://customerscanvas.com/docs/on-premises/ui-framework/widgets/reference/au-widget-design-editor.IAuWidgetDesignEditor.md#idesigneditorcommanddefinition)[] | The previous parameters for the command. |

###### Returns

`Promise`\<`any`\>
