LoadingView

A view in which loading bar can be added

Constructor

new LoadingView()

It creates a root HTML, then adds HTML elements for the loading bar.

Members

domElement :HTMLDivElement

Type:
  • HTMLDivElement

loadingBars :Object.<string, HTMLDivElement>

Loading bars

Type:
  • Object.<string, HTMLDivElement>

parentLoadingBar :HTMLDivElement

Type:
  • HTMLDivElement

Methods

addLoadingBar(id)

Add a loading bar to this view with a label equals to the id

Parameters:
NameTypeDescription
idstring

if of the loading bar to add

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:
NameTypeDescription
idstring

of the loading bar

percentnumber

the new percent of the bar