# Configuration

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

**Source**: https://docs.interop.io/desktop/reference/javascript/layouts/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/layouttype/index.md)
- [Mode](https://docs.interop.io/desktop/reference/javascript/layouts/mode/index.md)
