NavigationSearch
Unofficial
Search input and visibility controls shared by sidebar navigation headers.
Import:
import type { NavigationSearch } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface NavigationSearchProperties
| Property | Type | Description | |
|---|---|---|---|
| buttonEl | HTMLDivElement | Button that toggles search visibility. | |
| isShowing | boolean | Whether the search input is visible. | |
| searchComponent | SearchComponent | Underlying search input component. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| getValue() | string | Get the search text. | |
| hide() | void | Hide the input and clear its query. | |
| onToggle(showing) | void | Notify the owner when the user changes visibility. | |
| setShowing(showing) | void | Set visibility without notifying the owner. | |
| setValue(value) | void | Set the search text. | |
| show() | void | Show, focus and select the input. | |
| toggle() | void | Toggle search visibility. |
Links to this page: