HeaderDom
Unofficial
Renders navigation buttons, search and sort controls for a sidebar header.
Import:
import type { HeaderDom } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface HeaderDomProperties
| Property | Type | Description | |
|---|---|---|---|
| app | App | Reference to the app. | |
| navButtonsEl | HTMLDivElement | Container element for navigation buttons. | |
| navHeaderEl | HTMLDivElement | Container element for the navigation header. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| addNavButton(icon, title, onClick, className?) | HTMLDivElement | Add a navigation button to the header. | |
| addSearchButton(onChange, onToggle?) | NavigationSearch | Add a search input with a visibility toggle. | |
| addSortButton(arg1, arg2, arg3, arg4) | unknown | Add a sort button to the header. |
Links to this page: