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.

SelectFilter

tipo Since 1.5.0

Búsqueda propia de <MeekoSelect searchable>: recibe el texto (nunca vacío; con la búsqueda vacía se muestran options) y devuelve las opciones que se muestran, o una promesa de ellas para buscar en el servidor. Mientras la promesa no resuelve, el componente está cargando (data-loading, aria-busy y el snippet loading).

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

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

Declaración #

ts
type SelectFilter<T> = (query: string, context: SelectFilterContext<T>) => readonly T[] | PromiseLike<readonly T[]>

Type parameters #

T

Example #

ts
const byPrefix: SelectFilter<string> = (query, { options }) => options.filter((option) => option.startsWith(query));

See also #

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