Skip to main content

RestoreWorkspaceByIdConfiginterface

Options for restoring a Workspace from a Workspace Layout by the unique ID of the Layout. Available only in io.Connect Desktop.

io.Connect Desktop 10.5@interopio/workspaces-api 5.0.0

Properties (15)

Property Type Default Required Description
activateFrame⚓︎ boolean x x

If true, the Frame instance containing the restored Workspace will be activated. This means that the window of the Frame instance 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.

io.Connect Desktop 9.4@interopio/workspaces-api 3.3.2
allowSystemHibernation⚓︎ boolean x x

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 x x

Name of the Workspaces App that will be used for creating the new Frame instance. Available only in io.Connect Desktop.

context⚓︎ object x x

Object that will be set as a window context for all windows in the Workspace.

frameId⚓︎ string x x

ID of an existing Frame instance. If provided, the Workspace will be opened in that Frame instance.

icon⚓︎ string x x

Icon for the Workspace. The icon will represent the Workspace tab when the Workspace is pinned.

isPinned⚓︎ boolean x x

If true, the Workspace will be opened in a pinned state.

isSelected⚓︎ boolean x x

If true, the Workspace will be selected (on focus) in the Frame instance when opened.

layoutId⚓︎ string x

Unique ID of the Workspace Layout to restore. The Workspace Layout with the specified ID must exist, otherwise the operation will fail.

loadingStrategy⚓︎ LoadingStrategy x x

Loading strategy for the Workspace.

newFrame⚓︎ NewFrameConfig | boolean x x

If true, the Workspace will be opened in a new Frame instance. Pass a NewFrameConfig object to provide settings for the new Frame instance.

noTabHeader⚓︎ boolean x x

If true, the Workspace will be opened without a Workspace tab.

positionIndex⚓︎ number x x

Position for the Workspace within the Frame instance. This index will be ignored by the init() method when initializing an empty Frame instance.

reuseWorkspaceId⚓︎ string x x

ID of an existing Workspace that will be replaced by the restored Workspace.

title⚓︎ string x x

Title for the Workspace.