Interface: ProgressItem

Oracle® JavaScript Extension Toolkit (JET)
4.2.0

E91398-01

QuickNav

Fields

PREVIEW: This is a preview API. Preview APIs are production quality, but can be changed on a major version without a deprecation path.

oj. ProgressItem

Version:
  • 4.2.0
Since:
  • 4.0.0
This interface defines the API for oj.ProgressItem. It can be implemented in order to the track progress and status of an arbitrary task (e.g. a file being uploaded)
Since:
  • 4.0.0

Fields

<static> EventType :string

ProgressItem event types
Properties:
Name Type Default Description
LOADSTART string loadstart Triggered when the progress start
PROGRESS string progress Triggered for upload progress events.
ABORT string abort Triggered when an upload has been aborted.
ERROR string error Triggered when an upload failed.
LOAD string load Triggered when an upload succeeded.
TIMEOUT string timeout Triggered when timeout has passed before upload completed
LOADEND string loadend Triggered when an upload completed (success or failure).

<static> Status :string

ProgressItem status
Properties:
Name Type Default Description
QUEUED string queued initial state before any progress events
LOADSTARTED string loadstarted upload is in progress
ABORTED string aborted upload aborted
ERRORED string errored upload failed
TIMEDOUT string timedout upload timeout
LOADED string loaded upload is completed

Methods

addEventListener(eventType, eventHandler)

Attach an event handler
Parameters:
Name Type Description
eventType string eventType
eventHandler function(Object) event handler function

removeEventListener(eventType, eventHandler)

Detach an event handler
Parameters:
Name Type Description
eventType string eventType
eventHandler function(Object) event handler function