Skip to content

searchAsYouType

searchAsYouType(operationId, handler, queryPath, delay?): Action[]

Defined in: actions/helpers.ts:150

For a search box’s onChange: save the query to queryPath, then run handler with it once typing pauses for delay ms. A search still running when the next one starts is aborted.

ParameterTypeDefault value
operationIdstringundefined
handlerstringundefined
queryPathstring[]undefined
delay?number300

Action[]