Class: SmartProgressBar

SmartProgressBar(settings)

create the pop-up bar with several progress elements

Constructor

new SmartProgressBar(settings)

Create instance and html
Parameters:
Name Type Description
settings base settings object for init bar
Properties
Name Type Attributes Default Description
whereSelector string <optional>
"body" selector for place modal body
show bool <optional>
true show pop-up immediately
headerText bool <optional>
"Loading" displayed text
minimize bool <optional>
false display in compact size
changeSizeOnClick bool <optional>
true enable change size on click
Source:

Classes

SmartProgressBar

Members

isMounted

mounted flag
Source:

progress :number

Setter and getter for main progress
Type:
  • number
Source:

Methods

addProgress(settings) → {SmartProgressElement}

Create new instance of SmartProgressElement, mount and return it
Parameters:
Name Type Description
settings
Properties
Name Type Attributes Default Description
name string <optional>
"element" name of progress
progress number <optional>
0 number of progress
Source:
Returns:
Type
SmartProgressElement

hide()

Hide modal window
Source:

makeProgressActive(prog)

All progress changes will apply to header progress
Parameters:
Name Type Description
prog SmartProgressElement Progress, created by addProgress()
Source:

minimize()

Minimize or return to normal size main window
Source:

removeProgress(progress)

Remove progress form main modal
Parameters:
Name Type Description
progress SmartProgressElement
Source:

show()

Shows modal window
Source: