Skip to content

ProgressBarComponent

Extends

Constructors

new ProgressBarComponent()

new ProgressBarComponent(containerEl): ProgressBarComponent

Parameters

containerEl: HTMLElement

Returns

ProgressBarComponent

Overrides

ValueComponent.constructor

Properties

disabled

disabled: boolean

Inherited from

ValueComponent.disabled


lineEl

lineEl: HTMLDivElement

Access the “line” element which is a child of the progressBar element


progressBar

progressBar: HTMLDivElement

Access the “bar” element

Methods

getValue()

getValue(): number

Returns

number

Overrides

ValueComponent.getValue


registerOptionListener()

registerOptionListener(listeners, key): this

Parameters

listeners: Record<string, (value?) => number>

key: string

Returns

this

Inherited from

ValueComponent.registerOptionListener


setDisabled()

setDisabled(disabled): this

Parameters

disabled: boolean

Returns

this

Inherited from

ValueComponent.setDisabled


setValue()

setValue(value): this

Parameters

value: number

The progress amount, a value between 0-100.

Returns

this

Overrides

ValueComponent.setValue


setVisibility()

setVisibility(visible): this

Shows/hides the component

Parameters

visible: boolean

Whether the setting should be visible

Returns

this

The component


then()

then(cb): this

Facilitates chaining

Parameters

cb

Returns

this

Inherited from

ValueComponent.then