# RestoreOptions

**Kind**: interface | **Module**: [Layouts](https://docs.interop.io/browser/reference/javascript/layouts/index.md)

**Source**: https://docs.interop.io/browser/reference/javascript/layouts/restoreoptions/index.html

Options for restoring a Layout.

## Properties

- **`closeMe`** (`boolean`, optional) default: `true`
  If `true`, will close the current app before restoring a Layout. If `closeRunningInstances` is set to `false`, this will default to `false` too.
- **`closeRunningInstances`** (`boolean`, optional) default: `true`
  If `true`, will close all visible running instances before restoring the Layout.
  The only exception is the Main app (Web Platform) - it will never be closed when restoring a Layout.
- **`context`** (`object`, optional)
  Context object that will be passed to the restored apps. It will be merged with the saved context object.
- **`name`** (`string`, required)
  Name of the Layout to restore.
- **`timeout`** (`number`, optional) default: `60000`
  Timeout in milliseconds for restoring the Layout. If the time limit is hit, all apps opened up to this point will be closed and an error will be thrown.
