Skip to content

AbstractSearchComponent

Unofficial

Base interface for search components providing find-and-replace UI.

Import:

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

Signature:

export interface AbstractSearchComponent

Properties

PropertyTypeDescription
appAppReference to the app.
containerElHTMLElementThe container element in which the search component exists (i.e. obsidian#Editor).
replaceInputElHTMLInputElementContainer for the replacement input field.
scopeScopeKeyscope for search component.
searchButtonContainerElHTMLElementContainer for all the action buttons.
searchContainerElHTMLElementContainer for the search component itself.
searchInputElHTMLInputElementContainer for the search input field.

Methods

MethodReturnsDescription
getQuery()stringReturns the current search query.
goToNextInput(event)unknownSwitch to the next inputElement.
onEnter(event)unknownInvokes findNextOrReplace.
onShiftEnter(event)unknownInvokes findPrevious.

Links to this page: