Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

SelectFilterContext

interfaz Since 1.5.0

Lo que recibe una función filter de <MeekoSelect> además del texto buscado.

ts
import type { SelectFilterContext } from "@meekojs/meeko/framework";

Source code src/app/components/MeekoSelect/types.ts:40

Declaración #

ts
interface SelectFilterContext<T> {
	readonly options: readonly T[]
	readonly signal: AbortSignal
}

Type parameters #

T

Example #

ts
const search: SelectFilter<User> = (query, { signal }) => api.users.get({ query: { q: query }, signal });

Propiedades #

options #

propiedad sólo lectura

readonly options: readonly T[]

Las opciones de la prop options.

signal #

propiedad sólo lectura

readonly signal: AbortSignal

Se aborta cuando llega otra búsqueda o se cierra el componente: pásela a fetch.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/app/components/MeekoSelect/types.ts