Skip to content

AbstractSearchComponent

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:7

Extended by

Properties

app

app: App

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:11

Reference to the app


containerEl

containerEl: HTMLElement

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:15

The container element in which the search component exists (i.e. Editor)


replaceInputEl

replaceInputEl: HTMLInputElement

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:19

Container for the replacement input field


scope

scope: Scope

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:23

Keyscope for search component


searchButtonContainerEl

searchButtonContainerEl: HTMLElement

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:27

Container for all the action buttons


searchContainerEl

searchContainerEl: HTMLElement

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:31

Container for the search component itself


searchInputEl

searchInputEl: HTMLInputElement

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:35

Container for the search input field

Methods

getQuery()

getQuery(): string

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:40

Returns the current search query

Returns

string


goToNextInput()

goToNextInput(event): unknown

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:44

Switch to the next inputElement

Parameters

event

KeyboardEvent

Returns

unknown


onEnter()

onEnter(event): unknown

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:48

Invokes findNextOrReplace

Parameters

event

KeyboardEvent

Returns

unknown


onShiftEnter()

onShiftEnter(event): unknown

Defined in: src/obsidian/internals/Components/AbstractSearchComponent.d.ts:52

Invokes findPrevious

Parameters

event

KeyboardEvent

Returns

unknown