TX Sheet Control

FileProgressEvent Interface

Interface

Processing stage, with real work counts when available. Missing total means indeterminate, never an estimated percentage.

Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

Type-only declaration; it is not a JavaScript runtime constructor.

Members

Properties

PropertyDescription
byteLengthInput or output byte count, when known.
completedThe completed value of FileProgressEvent.
operationThe operation value of FileProgressEvent.
operationIdThe operationId value of FileProgressEvent.
phaseThe phase value of FileProgressEvent.
streamTypeThe streamType value of FileProgressEvent.
totalThe total value of FileProgressEvent.
unitThe unit value of FileProgressEvent.

Examples

Pass the FileProgressEvent value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

import type { FileProgressEvent } from '@txtextcontrol/tx-sheet-control';

function inspectFileProgressEventPhase(fileProgressEvent: FileProgressEvent) {
    const value = fileProgressEvent['phase'];
    console.log('FileProgressEvent.phase', value);
}

See Also