ProgressBar

Progress bar component is used to show progress visually, from 0% to 100%. Using multiple of these components in vertical position can be used to show audio spectrum analyzer.

Constructor

new ProgressBar(valueopt)

ProgressBar constructor. Creates an instance of ProgressBar UI component.

Parameters:
NameTypeAttributesDescription
valuenumber<optional>

Numeric value between 0 and 100.

Classes

ProgressBar

Methods

orientation(orientation) → {Orientation|ProgressBar}

Sets or get an orientation of the progress bar as horizontal or vertical.

Parameters:
NameTypeDescription
orientationOrientation

Orientation of progress bar. Default is horizontal.

Returns:

Returns this component instance when setting value, otherwise returns current value.

Type: 
Orientation | ProgressBar

value(valueopt) → {number|ProgressBar}

Sets or get a numeric value as percent of process.

Parameters:
NameTypeAttributesDescription
valuenumber<optional>

Numeric value between 0 and 100 that represents percent of progress.

Returns:

Returns this instance of ProgressBar when setting a value, otherwise returns current value.

Type: 
number | ProgressBar