# Configuration

**Kind**: interface | **Module**: [Layouts Legacy](https://docs.interop.io/desktop/reference/javascript/layouts%20legacy/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/layouts legacy/configuration/index.html

Configuration for the Layouts library.

## Properties

- **`autoSaveWindowContext`** (`boolean | LayoutType[]`, required) default: `false`
  If `true`, the context of the current window will be saved.
  You can also specify a list of Layout types for which to save the window context.
- **`mode`** (`Mode`, required)
  Layouts library mode.

## Related types

- [LayoutType](https://docs.interop.io/desktop/reference/javascript/layouts%20legacy/layouttype/index.md)
- [Mode](https://docs.interop.io/desktop/reference/javascript/layouts%20legacy/mode/index.md)
