Constructor
new LoadingView()
It creates a root HTML, then adds HTML elements for the loading bar.
- Source
Members
domElement :HTMLDivElement
Type:
- HTMLDivElement
- Source
loadingBars :Object.<string, HTMLDivElement>
Loading bars
Type:
- Object.<string, HTMLDivElement>
- Source
parentLoadingBar :HTMLDivElement
Type:
- HTMLDivElement
- Source
Methods
addLoadingBar(id)
Add a loading bar to this view with a label equals to the id
Parameters:
Name | Type | Description |
---|---|---|
id | string | if of the loading bar to add |
- Source
updateProgress(id, percent)
Updates the progress bar of a loading bar with the given id. Sets the width of the loading bar with the given percent.
Parameters:
Name | Type | Description |
---|---|---|
id | string | of the loading bar |
percent | number | the new percent of the bar |
- Source