FoxitPDFSDKforWeb
v10.0.0
Foxit PDF SDK for Web
|
The ProgressComponent is an interface class that represents a component for displaying the progress of a task. It can be used to provide a visual indication of the progress of a task that may take some time to complete. More...
Public Member Functions | |
void | hide () |
A method used to hide the component. More... | |
void | show (coverOn) |
A method used to display the component on the page. More... | |
updateProgress (progress, status) | |
A method used to update the progress of the task. More... | |
The ProgressComponent is an interface class that represents a component for displaying the progress of a task. It can be used to provide a visual indication of the progress of a task that may take some time to complete.
void ProgressComponent::hide | ( | ) |
A method used to hide the component.
void ProgressComponent::show | ( | coverOn | ) |
A method used to display the component on the page.
[coverOn] | HTMLElement|Component - Overlaid element. |
ProgressComponent::updateProgress | ( | progress | , |
status | |||
) |
A method used to update the progress of the task.
progress | number|Object - This parameter can be either a number or an object. If it is a number, it represents the overall progress of the task as a percentage. If it is an object, it has two properties: current and total, which represent the current progress and total progress of the task, respectively. |
progress.current | number - This property represents the current progress of the task. |
progress.total | number - This property represents the total progress of the task. |
status | string - This parameter indicates the current status of the task progress. It should be one of the values defined in the PROGRESS_STATUS constant. |