interface QueryCollectionHandle<TRow> No documentation.
Properties
viewport
readonly viewport: QueryViewport<TRow>; The rows to render with their offsets, the spacer's totalSize, the total, query, loading and error state.
attach
readonly attach: Attachment<HTMLElement>; Attach to the scroll container: <div {@attach list.attach}>.
Methods
measure
measure(index: number): Attachment<Element>; Attach to each rendered row, so its height is measured: <div {@attach list.measure(item.index)}>.
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.