Skip to content

WorkspaceFloating

Official

Workspace floating.

Import:

import { WorkspaceFloating } from 'obsidian';

Signature:

export class WorkspaceFloating extends WorkspaceParent

Extends: WorkspaceParent

Constructor

new WorkspaceFloating()

Constructor.

To get the constructor instance, use getWorkspaceFloatingConstructor from obsidian-typings/implementations.

Properties

PropertyTypeDescription
allowSingleChildbooleanWhether this parent is allowed to contain a single child (rather than collapsing it).
(Inherited from WorkspaceParent)
autoManageDOMbooleanWhether this parent automatically manages the DOM of its children.
(Inherited from WorkspaceParent)
childrenWorkspaceItem[]The child items contained in this parent.
(Inherited from WorkspaceParent)
parentWorkspaceParentThe parent of the floating.

Methods

MethodReturnsDescription
insertChild(index, child)voidInserts a child at the given index.
(Inherited from WorkspaceParent)
recomputeChildrenDimensions()voidRecomputes the dimensions of the children.
(Inherited from WorkspaceParent)
removeChild(child)voidRemoves a child.
(Inherited from WorkspaceParent)
replaceChild(index, child)voidReplaces the child at the given index.
(Inherited from WorkspaceParent)

Links to this page: