interface QueryCollectionHandle<TRow> No documentation.
Properties
viewport
readonly viewport: Readonly<Ref<QueryViewport<TRow>>>; The rows to render with their offsets, the spacer's totalSize, the total, query, loading and error state.
Methods
attach
attach(element: Element | ComponentPublicInstance | null): void; A function ref for the scroll container, bound to a native element: <div :ref="attach">.
measure
measure(element: Element | ComponentPublicInstance | null, index: number): void; A function ref for each rendered row, which measures its height: <div :ref="el => measure(el, 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.