Arguments for the beforeLoad event. Emitted before data loading begins.

Example

onBeforeLoad(args: BeforeLoadArgs) {
if (this.isOffline) {
args.cancel = true;
this.showOfflineMessage();
}
}
interface BeforeLoadArgs {
    batchSize?: number;
    cancel: boolean;
    groups: TimelineGroup<any>[];
    isIncremental: boolean;
    offset?: number;
}

Hierarchy (view full)

Properties

batchSize?: number

For incremental loads, the batch size.

cancel: boolean

Set to true to cancel the default behavior. Default value is false.

groups: TimelineGroup<any>[]

The groups that will be loaded.

isIncremental: boolean

Whether this is an incremental load (virtual scroll) or a full refresh.

offset?: number

For incremental loads, the current offset.