new ProgressBar(elParentopt, step, settingsopt)
Creates a progress bar element on your web page.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
elParent |
HTMLElement |
<optional> |
parent element. ProgressBar is not visible if elParent is undefined. | |||||||||||||||||||||||||||||||
step |
function | The step(progressBar, i) function to be executed asynchronous during progress.
parameter progressBar: this ProgressBar instance. parameter i: current iteration index. parameter params: User defined parameters that can passed from params of the step method. |
||||||||||||||||||||||||||||||||
settings |
object |
<optional> |
{} | The following settings are available
Properties
|
- Source:
Members
value
set new value of the progress bar
- Source:
Methods
newStep(stepFunction)
set new step function
Parameters:
Name | Type | Description |
---|---|---|
stepFunction |
function | New step function. See the ProgressBar constructor's step parameter. |
- Source:
remove()
remove progress bar from your web page.
- Source:
step(paramsopt)
Execute the next step asynchronously.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
params |
Object |
<optional> |
User defined parameters that will be passed to the params of the step function of the ProgressBar constructor. |
- Source:
title(newTitle)
set new title
Parameters:
Name | Type | Description |
---|---|---|
newTitle |
string |
- Source: