Skip to main content

WorkspaceLayoutSaveByIdConfiginterface

Options for saving a Workspace as a Workspace Layout by ID. When Layout sharing is enabled, each Workspace Layout has a unique ID and Workspace Layout names aren't guaranteed to be unique. Available only in io.Connect Desktop.

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

Properties (7)

Property Type Default Required Description
allowMultiple⚓︎ boolean true x

If true, will allow opening multiple instances of the same Workspace simultaneously.

io.Connect Desktop 9.8io.Connect Browser 3.5@interopio/workspaces-api 3.5.5
id⚓︎ string x x

Uniques ID of an existing Workspace Layout to be overwritten with the structure of the current Workspace. The Workspace Layout with the specified ID must exist, otherwise the operation will fail.

metadata⚓︎ object x x

Metadata that will be saved as part of the Workspace Layout.

name⚓︎ string x

Name for the Workspace Layout.

saveContext⚓︎ boolean x x

If true, the current Workspace context will be saved in the Workspace Layout.

saveWindowContexts⚓︎ boolean false x

If true, the context objects of individual io.Connect Windows set via the setContext() method of a WebWindow instance will be saved when the Workspace Layout is saved. This is valid both for Browser Client apps, as well as for windows that have been opened by the Main app or by a Browser Client, but aren't Browser Clients themselves (i.e., don't use the io.Connect libraries). If a Browser Client has subscribed for the onSaveRequested() event and its context has also been set via the setContext() method, the context returned by the onSaveRequested() event handler will take precedence. Available only in io.Connect Browser.

io.Connect Browser 4.4@interopio/workspaces-api 4.4
workspaceId⚓︎ string x

ID of the Workspace whose structure will be saved as a Workspace Layout.