WorkspaceFloating
Official
Workspace floating.
Import:
import { WorkspaceFloating } from 'obsidian';Signature:
export class WorkspaceFloating extends WorkspaceParentExtends: WorkspaceParent
Constructor
new WorkspaceFloating()Constructor.
To get the constructor instance, use getWorkspaceFloatingConstructor from obsidian-typings/implementations.
Properties
| Property | Type | Description | |
|---|---|---|---|
| allowSingleChild | boolean | Whether this parent is allowed to contain a single child (rather than collapsing it). (Inherited from WorkspaceParent) | |
| autoManageDOM | boolean | Whether this parent automatically manages the DOM of its children. (Inherited from WorkspaceParent) | |
| children | WorkspaceItem[] | The child items contained in this parent. (Inherited from WorkspaceParent) | |
| parent | WorkspaceParent | The parent of the floating. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| insertChild(index, child) | void | Inserts a child at the given index. (Inherited from WorkspaceParent) | |
| recomputeChildrenDimensions() | void | Recomputes the dimensions of the children. (Inherited from WorkspaceParent) | |
| removeChild(child) | void | Removes a child. (Inherited from WorkspaceParent) | |
| replaceChild(index, child) | void | Replaces the child at the given index. (Inherited from WorkspaceParent) |
Links to this page: