Skip to content

Workspace.changeLayout method

Workspace › changeLayout

Official

Change the layout of the workspace.

Signature:

changeLayout(workspace: unknown): Promise<void>

Parameters:

Parameter Type Description
workspace unknown The workspace to change the layout to.

Returns: Promise<void>A promise that resolves when the layout is changed. To get the constructor instance, use getWorkspaceConstructor from obsidian-typings/implementations.

Since: 0.9.7