# NewLayoutOptions

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

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

Options for saving a new Layout.

## Properties

- **`context`** (`any`, optional)
  Context to be saved with the Layout.
- **`ignoreContexts`** (`boolean`, optional) *(since io.Connect Desktop 9.9, @interopio/desktop 6.14.0)*
  If `true`, the context objects of individual io.Connect Windows and Workspaces participating in the Global Layout won't be saved when the Layout is saved.
  You can still use the `context` property to provide context data to be saved for the Global Layout itself.
  Valid only for Global Layouts.
- **`ignoreInstances`** (`string[]`, optional)
  Only if the Layout type is `"Global"`. The instances with the provided IDs will be ignored.
- **`instances`** (`string[]`, optional)
  Only if the Layout type is `"Global"`. The instances with the provided IDs will be saved.
- **`metadata`** (`any`, optional)
  Metadata to be saved with the Layout.
- **`name`** (`string`, required)
  Name for the Layout.
- **`setAsCurrent`** (`boolean`, optional) *(since io.Connect Desktop 9.1, @interopio/desktop 6.1.0)*
  If `true`, will set the saved Layout as the current Global Layout.
- **`type`** (`LayoutType`, optional) default: `"Global"`
  Type of the Layout.

## Related types

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