Configuration for virtual scrolling behavior.

Example

const scrollConfig: VirtualScrollConfig = {
enabled: true,
batchSize: 25,
loadThreshold: 300,
showLoadingIndicator: true,
loadingMessage: 'Loading more events...'
};
interface VirtualScrollConfig {
    batchSize: number;
    enabled: boolean;
    loadThreshold: number;
    loadingMessage?: string;
    showLoadingIndicator: boolean;
}

Properties

batchSize: number

Number of events to load per batch.

Default

20
enabled: boolean

Whether virtual scrolling is enabled. When disabled, all events load at once.

Default

true
loadThreshold: number

Distance from bottom (in pixels) at which to trigger loading more.

Default

200
loadingMessage?: string

Custom message to display while loading.

Default

'Loading more events...'
showLoadingIndicator: boolean

Whether to show a loading indicator while fetching.

Default

true