Skip to content

FrameDom

Unofficial

DOM elements for the custom window frame (title bar) on desktop.

Import:

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

Signature:

export interface FrameDom

Constructor

new FrameDom(electronWindow: ElectronBrowserWindow, win: Window)

Constructor.

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

Properties

PropertyTypeDescription
eWinElectronBrowserWindowReference to the Electron browser window.
isMacbooleanWhether the current platform is macOS.
leftButtonContainerElHTMLDivElementContainer for window control buttons on the left side.
requestUpdateStatusDebouncer<[], void>Debounced request to update the window status indicators in the title bar.
titleBarElHTMLDivElementThe title bar element.
titleBarInnerElHTMLDivElementInner container of the title bar.
titleBarTextElHTMLDivElementElement displaying the title bar text.
winWindowReference to the window object.

Methods

MethodReturnsDescription
updateStatus()voidUpdate the window status indicators in the title bar.
updateTitle()voidUpdate the displayed title in the title bar.

Links to this page: