FileProgressEvent 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
| Property | Description |
|---|---|
| byteLength | Input or output byte count, when known. |
| completed | The completed value of FileProgressEvent. |
| operation | The operation value of FileProgressEvent. |
| operationId | The operationId value of FileProgressEvent. |
| phase | The phase value of FileProgressEvent. |
| streamType | The streamType value of FileProgressEvent. |
| total | The total value of FileProgressEvent. |
| unit | The 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);
}