Skip to content

ObsidianDOM

Unofficial

Core DOM elements of the Obsidian application layout.

Import:

import type { ObsidianDOM } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface ObsidianDOM

Constructor

new ObsidianDOM(containerEl: HTMLElement)

Constructor.

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

Properties

Property Type Description
appContainerEl HTMLElement Root element of the application.
horizontalMainContainerEl HTMLElement Child of ObsidianDOM.appContainerEl containing the main content of the application.
statusBarEl HTMLElement Status bar element containing word count among other things.
workspaceEl HTMLElement Child of ObsidianDOM.horizontalMainContainerEl containing the workspace DOM.

Links to this page: