Skip to main content

Interface: SearchInputStore<T>

Defined in: src/widgets/utility/searchInput.tsx:106

Represents the state store for an abstract search input component.

See​

useSearchInputStore

Type Parameters​

Type ParameterDefault type

T

string

Properties​

PropertyModifierTypeDescription

events

readonly

Events<SearchInputStoreEvents<T>>

Events for the search store.

Accessors​

mode​

Get Signature​

get mode(): "debounce" | "immediate" | "explicit"

Defined in: src/widgets/utility/searchInput.tsx:117

Current submit mode for the input value changes in the store:

  • debounce: submit after debounce timeout;
  • immediate: submit immediately after input;
  • explicit: submit only on explicit submit action.
Returns​

"debounce" | "immediate" | "explicit"


value​

Get Signature​

get value(): T

Defined in: src/widgets/utility/searchInput.tsx:121

Current search query value.

Returns​

T

Methods​

change()​

change(params): void

Defined in: src/widgets/utility/searchInput.tsx:125

Changes the search query value with specified intent (action).

Parameters​

ParameterTypeDescription

params

{ action: "clear" | "input" | "submit"; value: T; }

‐

params.action

"clear" | "input" | "submit"

Change intent (action):

  • input: potentially transient change to the query value, likely to be superseded by another;
  • submit: explicit request to perform the search immediately;
  • clear: explicit or implicit request to clear the search query e.g. via specific button or if a new value is not allowed to be submitted.

params.value

T

New search query value.

Returns​

void