Skip to content

AbstractTextComponent

Defined in: obsidian.d.ts:329

Extends

Extended by

Type Parameters

T extends HTMLInputElement | HTMLTextAreaElement

Constructors

new AbstractTextComponent()

new AbstractTextComponent<T>(inputEl): AbstractTextComponent<T>

Defined in: obsidian.d.ts:338

Parameters

inputEl

T

Returns

AbstractTextComponent<T>

Overrides

ValueComponent.constructor

Properties

changeCallback()?

optional changeCallback: (value) => void

Defined in: src/obsidian/augmentations/Components/AbstractTextComponent.d.ts:9

The function that’s called after changing the value of the component.

Parameters

value

string

Returns

void

disabled

disabled: boolean

Defined in: obsidian.d.ts:423

Inherited from

ValueComponent.disabled


inputEl

inputEl: T

Defined in: obsidian.d.ts:333

Methods

getValue()

getValue(): string

Defined in: obsidian.d.ts:346

Returns

string

Overrides

ValueComponent.getValue


onChange()

onChange(callback): this

Defined in: obsidian.d.ts:362

Parameters

callback

(value) => any

Returns

this


onChanged()

onChanged(): void

Defined in: obsidian.d.ts:358

Returns

void


registerOptionListener()

registerOptionListener(listeners, key): this

Defined in: obsidian.d.ts:4219

Parameters

listeners

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

key

string

Returns

this

Inherited from

ValueComponent.registerOptionListener


setDisabled()

setDisabled(disabled): this

Defined in: obsidian.d.ts:342

Parameters

disabled

boolean

Returns

this

Overrides

ValueComponent.setDisabled


setPlaceholder()

setPlaceholder(placeholder): this

Defined in: obsidian.d.ts:354

Parameters

placeholder

string

Returns

this


setValue()

setValue(value): this

Defined in: obsidian.d.ts:350

Parameters

value

string

Returns

this

Overrides

ValueComponent.setValue


then()

then(cb): this

Defined in: obsidian.d.ts:428

Facilitates chaining

Parameters

cb

(component) => any

Returns

this

Inherited from

ValueComponent.then