Constructor
# new ProgressBar(bar_element)
Creates a new progress bar instance
Parameters:
Name | Type | Description |
---|---|---|
bar_element |
HTMLDivElement
|
The HTML div element to use as the progress bar |
Classes
Members
# bar_element
HTML div element representing the progress bar
Methods
# setProgress(progress)
Sets the progress value and updates the visual representation
Parameters:
Name | Type | Description |
---|---|---|
progress |
number
|
Progress value between 0 and 100 |
If progress value is outside valid range (will clamp value)
console.error