Skip to content

HeaderDom

Unofficial

Renders navigation buttons, search and sort controls for a sidebar header.

Import:

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

Signature:

export interface HeaderDom

Properties

PropertyTypeDescription
appAppReference to the app.
navButtonsElHTMLDivElementContainer element for navigation buttons.
navHeaderElHTMLDivElementContainer element for the navigation header.

Methods

MethodReturnsDescription
addNavButton(icon, title, onClick, className?)HTMLDivElementAdd a navigation button to the header.
addSearchButton(onChange, onToggle?)NavigationSearchAdd a search input with a visibility toggle.
addSortButton(arg1, arg2, arg3, arg4)unknownAdd a sort button to the header.

Links to this page: