API reference
@salmonui/data-grid/engine/infinite
24 exported symbols: 4 functions, 2 classes, 6 interfaces, 10 types and 2 constants. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/data-grid/engine/infinite';Functions
createInfiniteScrollModuleInfinite scroll for remote sources: the grid requests row ranges (DataSourceRequest.range) as the viewport approaches rows that are not loaded; see the module…lazyGroupsToAppendGroup row ids (g: ids) whose next chunk should load for the rendered rows [start, end) of view: expanded lazy groups with hasMore, not loading and not failed,…loadingRowIndexPlaceholder row index of a loading:<n> id, or -1.resolveInfiniteOptions
Classes
InfiniteStoreLoaded blocks of the current query. blocks and pending are replaced on every change (a view keeps the maps it was built from); index maps the ids of loaded row…InfiniteViewRow model view over the loaded blocks: loaded rows are data, the others loading placeholders.
Interfaces
InfiniteBlockInfiniteSchedulerInfiniteScrollOptionsInfiniteScrollStateThe infiniteScroll module slice (snapshot.modules.infiniteScroll); replaced once per settled load.InfiniteScrollStatsResolvedInfiniteOptions
Types
InfiniteScrollCommandInfiniteScrollFacadeengine.infiniteScroll: the generated façade of the infiniteScroll module. Commands loadNext(), retry(), reload() dispatch infiniteScroll.loadNext / retry / rel…InfiniteScrollLoadNextCommandload the block after the last loaded row (no-op when every row is loaded).InfiniteScrollLoadedCommandA block load settled (dispatched by the module; part of the public command union).InfiniteScrollMethodsInfiniteScrollModuleInfiniteScrollPublicCommandPublic infiniteScroll.* commands (engine.dispatch); infiniteScroll.loaded is the module's own.InfiniteScrollReloadCommandDrop every block and load the initial blocks again (after changing settings).InfiniteScrollRetryCommandRetry after a failed block load.InfiniteStatus
Constants
INFINITE_LOADING_ID_PREFIXId prefix of placeholder rows (kind: 'loading'): loading:<rowIndex>.INFINITE_SCROLL_COMMANDSCommand types of the infiniteScroll module (a renderer that installs the driver lazily declares them up front).