---
title: "Interface: ISetMockupOptions | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/ObjectModel.ISetMockupOptions/"
---

# Interface: ISetMockupOptions

> A structure defining options for managing history and surface size when changing mockups.

## Remarks

[Product.setMockups](https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/classes/ObjectModel.Product.md#setmockups) uses this structure.

## Example

``` js
options: {
    updateRevertData: false,
    addToHistory: false,
    updateSurfaceSize: true,
    resetHistory: true
}
```

## Properties

### updateRevertData?

> `optional` **updateRevertData?**: `boolean`

If `true`, the new mockup is stored as one to restore when the product is reverted. Otherwise, the previously stored mockup is restored on a product revert. The default value is `true`.

***

### addToHistory?

> `optional` **addToHistory?**: `boolean`

If `true`, adds a new user action to the history to allow your users to revert new mockups by using the **Undo** button. If `false`, will not add a single action to the history, because of that the mockup can be reverted together with the following user action. The default value is `true`.

***

### updateSurfaceSize?

> `optional` **updateSurfaceSize?**: `boolean`

If `true`, changes the surface size to match the new mockup. If `false`, the surface size remains unchanged. The default value is `false`.

***

### resetHistory?

> `optional` **resetHistory?**: `boolean`

If `true`, resets the history of user actions after changing the mockups. The default value is `false`.
