Progress()
Properties:
| Name | Type | Description |
|---|---|---|
$element |
module:ko/dom~QueryObject | The ko/dom instance for the parent element |
element |
Element | The main DOM element for the parent element |
Methods
-
<static> close(force)
-
Close the progress bar, this removes the element
Parameters:
Name Type Description forceboolean If force is false then an on("close") callback can interrupt this process
-
<static> message(value)
-
Set the given message under the progress bar
Parameters:
Name Type Description valuestring -
<static> off(type, callback)
-
Remove callback listener
Parameters:
Name Type Default Description typestring message|close Event type
callbackfunction The Callback function that was used to add the listener
-
<static> on(type, callback)
-
Add callback listener
Parameters:
Name Type Default Description typestring message|close Event type
callbackfunction Callback function
-
<static> percentage(value)
-
Set the percentage to the given value
This can only be used on determined progress bars
Parameters:
Name Type Description valueinteger