Skip to content

NavigationSearch

Unofficial

Search input and visibility controls shared by sidebar navigation headers.

Import:

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

Signature:

export interface NavigationSearch

Properties

PropertyTypeDescription
buttonElHTMLDivElementButton that toggles search visibility.
isShowingbooleanWhether the search input is visible.
searchComponentSearchComponentUnderlying search input component.

Methods

MethodReturnsDescription
getValue()stringGet the search text.
hide()voidHide the input and clear its query.
onToggle(showing)voidNotify the owner when the user changes visibility.
setShowing(showing)voidSet visibility without notifying the owner.
setValue(value)voidSet the search text.
show()voidShow, focus and select the input.
toggle()voidToggle search visibility.

Links to this page: