QueryCollectionHandle interface

Module @runic-artifex/angular in @runic-artifex/angular 0.23.0

interface QueryCollectionHandle<TRow>

No documentation.

Properties

viewport

readonly viewport: Signal<QueryViewport<TRow>>;

The rows to render with their offsets, the spacer's totalSize, the total, query, loading and error state.

Methods

observe

observe(element: Element | ElementRef<Element>, index: number): () => void;

Measures a rendered row's height until the returned function is called, for example from an effect over viewChildren of the rows.

scrollToKey

scrollToKey(key: string, align?: "start" | "center" | "end"): Promise<boolean>;

Scrolls to the row with key in the current query; resolves false when no row has it.

scrollToIndex

scrollToIndex(index: number, align?: "start" | "center" | "end"): void;

No documentation.

setQuery

setQuery(query: RunicQuery): Promise<void>;

Changes the collection's sort and filter (ViewModel state every presentation shares).

retry

retry(): void;

Loads the range again after a failure.