Skip to content

ProgressBarComponent

Defined in: obsidian.d.ts:3461

new ProgressBarComponent(containerEl): ProgressBarComponent

Defined in: obsidian.d.ts:3466

HTMLElement

ProgressBarComponent

ValueComponent.constructor

disabled: boolean

Defined in: obsidian.d.ts:439

ValueComponent.disabled


lineEl: HTMLDivElement

Defined in: src/obsidian/augmentations/Components/ProgressBarComponent.d.ts:13

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

progressBar: HTMLDivElement

Defined in: src/obsidian/augmentations/Components/ProgressBarComponent.d.ts:20

Access the “bar” element.

constructor__(containerEl): this

Defined in: src/obsidian/augmentations/Components/ProgressBarComponent.d.ts:29

Creates a new ProgressBarComponent.

HTMLElement

The container element.

this

getValue(): number

Defined in: obsidian.d.ts:3470

number

ValueComponent.getValue

getValue(): number

Defined in: src/obsidian/augmentations/Components/ProgressBarComponent.d.ts:37

Get the current value of the progress bar (0-100).

number

The current value of the progress bar.

ValueComponent.getValue


optional getValue__(): number

Defined in: src/obsidian/augmentations/Components/ValueComponent.d.ts:15

Get the value of the component.

number

The value of the component.

ValueComponent.getValue__


registerOptionListener(listeners, key): this

Defined in: obsidian.d.ts:4305

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

string

this

ValueComponent.registerOptionListener

registerOptionListener(listeners, key): this

Defined in: src/obsidian/augmentations/Components/ValueComponent.d.ts:33

Register an option listener.

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

The listeners to register.

string

The key of the option.

this

The component.

valueComponent.registerOptionListener({
'foo': (value) => {
console.log(value);
}
}, 'foo');

ValueComponent.registerOptionListener


setDisabled(disabled): this

Defined in: obsidian.d.ts:448

boolean

this

ValueComponent.setDisabled

setDisabled(disabled): this

Defined in: src/obsidian/augmentations/Components/BaseComponent.d.ts:26

Sets the disabled state of the component.

boolean

Whether to disable the component.

this

The component instance.

component.setDisabled(true);

ValueComponent.setDisabled


setValue(value): this

Defined in: obsidian.d.ts:3475

number

The progress amount, a value between 0-100.

this

ValueComponent.setValue

setValue(value): this

Defined in: src/obsidian/augmentations/Components/ProgressBarComponent.d.ts:46

Set the current value of the progress bar.

number

The progress amount, a value between 0-100.

this

The progress bar component.

ValueComponent.setValue


setValue__(value): this

Defined in: src/obsidian/augmentations/Components/ValueComponent.d.ts:47

Set the value of the component.

number

The value to set.

this

The component.

valueComponent.setValue('foo');

ValueComponent.setValue__


setVisibility(visible): this

Defined in: src/obsidian/augmentations/Components/ProgressBarComponent.d.ts:55

Shows/hides the component.

boolean

Whether the setting should be visible.

this

The component.

then(cb): this

Defined in: obsidian.d.ts:444

Facilitates chaining

(component) => any

this

ValueComponent.then

then(cb): this

Defined in: src/obsidian/augmentations/Components/BaseComponent.d.ts:41

Facilitates chaining.

(component) => any

The callback to execute.

this

The component instance.

component.then((x) => {
console.log(x);
});

ValueComponent.then