Interface LoaderProgressDialogRunWithParams<T>

interface LoaderProgressDialogRunWithParams<T> {
    container?: HTMLElement;
    delayMs?: number;
    minVisibleMs?: number;
    run: LoaderProgressDialogRun<T>;
    title?: string;
}

Type Parameters

  • T

Properties

container?: HTMLElement

DOM container; defaults to document.body.

delayMs?: number

Delay before the dialog first appears, in ms. Loads that finish before this fire never paint a dialog. Default 250.

minVisibleMs?: number

Once the dialog has appeared, minimum time it stays visible before being hidden, in ms. Prevents the dialog from blinking off if the load finishes immediately after the delay threshold. Default 400.

The loader call. Receives a progress callback + abort signal; pass them through to your loader's options.

title?: string

Header title shown at the top of the dialog.