Type of the items.
Type of the key of an item, a primitive (see LookupValue).
The items whose key is one of values, without the ones the source does
not know, in no particular order: index them with valueOf.
Keys to resolve; an empty list resolves to [].
Optionalsignal: AbortSignal
Aborted by the caller when the result is no longer needed.
the items found.
The items whose text contains query (every item when query is empty),
one page at a time.
Text to look for; "" for every item.
Page to return: offset of the first item, a multiple of
limit, and limit items.
Optionalsignal: AbortSignal
Aborted by the caller when the result is no longer needed.
the items of the page and whether more may follow.
A stateless source of reference items: the departments a combobox searches by name, the department a cell of a grid shows from its id. Each call has its own parameters, its own result and its own signal, nothing is shared between calls, so one instance serves any number of consumers at once (a combobox panel, the fifty cells of a grid page, another combobox on the same entity), where a data source is a cursor with one query and one
items.An aborted call rejects with the
AbortedExceptionof ts-core, the same rejection a superseded read of a data source has, so oneisAbortedExceptionhandles both.Build one with createLookupSource (over a reader) or createInMemoryLookupSource (over a list), or write an object that satisfies the interface for a service with its own endpoints. Decorate it with withBatching and withCache where many consumers resolve the same keys.
Example