Skip to content

Workspace.moveLeafToPopout method

Workspace › moveLeafToPopout

Official

Migrates this leaf to a new popout window. Only works on the desktop app.

Signature:

moveLeafToPopout(leaf: WorkspaceLeaf, data?: WorkspaceWindowInitData): WorkspaceWindow

Parameters:

ParameterTypeDescription
leafWorkspaceLeafThe leaf.
data?WorkspaceWindowInitDataThe size and position of the popout window.

Returns: WorkspaceWindow

Since: 0.15.4