Skip to content

ObsidianDOM

Unofficial

Core DOM elements of the Obsidian application layout.

Import:

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

Signature:

export interface ObsidianDOM

Constructor

new ObsidianDOM(containerEl: HTMLElement)

Constructor.

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

Properties

PropertyTypeDescription
appContainerElHTMLElementRoot element of the application.
horizontalMainContainerElHTMLElementChild of ObsidianDOM.appContainerEl containing the main content of the application.
statusBarElHTMLElementStatus bar element containing word count among other things.
workspaceElHTMLElementChild of ObsidianDOM.horizontalMainContainerEl containing the workspace DOM.

Links to this page: