# RestoreWorkspaceConfig

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

**Source**: https://docs.interop.io/desktop/reference/javascript/workspaces/restoreworkspaceconfig/index.html

An object containing all the possible settings when restoring a workspace from a layout.

## Properties

- **`activateFrame`** (`boolean`, optional)
  If `true`, the Workspaces Frame instance containing the restored Workspace will be activated.
  This means that the Workspaces Frame window will gain focus, will be restored to its normal state (e.g., if it has been previously minimized),
  and will be brought in front of other existing windows.
  Defaults to the configuration passed in the `workspaces.json` file or to `false`.
  *Available only in **io.Connect Desktop**.*
- **`allowSystemHibernation`** (`boolean`, optional)
  If `true`, will allow the Workspace to be hibernated via the platform configuration.
  This setting doesn't apply to programmatic hibernation via the `hibernate()` method of a `Workspace` instance.
- **`applicationName`** (`string`, optional)
  The application name of the workspace app that should be used for the new frame.
  *Available only in **io.Connect Desktop**.*
- **`context`** (`object`, optional)
  An object which will be set as the window context of all windows inside this workspace.
- **`frameId`** (`string`, optional)
  A string id of an existing frame. If provided, this workspace will be opened in that specific frame
- **`icon`** (`string`, optional)
  Sets the icon related for the workspace. The icon will be used for example for pinned workspaces.
- **`isPinned`** (`boolean`, optional)
  Controls whether the workspace will be opened in a pinned or in a normal state
- **`isSelected`** (`boolean`, optional)
  Controls whether the workspace will be focused or not in the frame when opened
- **`loadingStrategy`** (`LoadingStrategy`, optional)
- **`newFrame`** (`NewFrameConfig | boolean`, optional)
  A setting used to declare that the workspace must be in a new frame and also provide options for that new frame
- **`noTabHeader`** (`boolean`, optional)
  Opens the workspace without a workspace tab element
- **`positionIndex`** (`number`, optional)
  Specifies the position of the Workspace within the `Frame` instance.
  This index is ignored by the `init()` method for initializing an empty `Frame`.
- **`reuseWorkspaceId`** (`string`, optional)
  Used for replacing the specified workspace instead of creating a new one
- **`title`** (`string`, optional)
  The title of the new workspace.

## Related types

- [LoadingStrategy](https://docs.interop.io/desktop/reference/javascript/workspaces/loadingstrategy/index.md)
- [NewFrameConfig](https://docs.interop.io/desktop/reference/javascript/workspaces/newframeconfig/index.md)
