Skip to content

MomentFormatComponent

Defined in: obsidian.d.ts:2886

Extends

Constructors

new MomentFormatComponent()

new MomentFormatComponent(containerEl): MomentFormatComponent

Defined in: obsidian.d.ts:4057

Parameters

containerEl

HTMLElement

Returns

MomentFormatComponent

Inherited from

TextComponent.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

Inherited from

TextComponent.changeCallback


disabled

disabled: boolean

Defined in: obsidian.d.ts:423

Inherited from

TextComponent.disabled


inputEl

inputEl: HTMLInputElement

Defined in: obsidian.d.ts:333

Inherited from

TextComponent.inputEl


sampleEl

sampleEl: HTMLElement

Defined in: obsidian.d.ts:2890

Methods

getValue()

getValue(): string

Defined in: obsidian.d.ts:346

Returns

string

Inherited from

TextComponent.getValue


onChange()

onChange(callback): this

Defined in: obsidian.d.ts:362

Parameters

callback

(value) => any

Returns

this

Inherited from

TextComponent.onChange


onChanged()

onChanged(): void

Defined in: obsidian.d.ts:2908

Returns

void

Overrides

TextComponent.onChanged


registerOptionListener()

registerOptionListener(listeners, key): this

Defined in: obsidian.d.ts:4219

Parameters

listeners

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

key

string

Returns

this

Inherited from

TextComponent.registerOptionListener


setDefaultFormat()

setDefaultFormat(defaultFormat): this

Defined in: obsidian.d.ts:2896

Sets the default format when input is cleared. Also used for placeholder.

Parameters

defaultFormat

string

Returns

this


setDisabled()

setDisabled(disabled): this

Defined in: obsidian.d.ts:342

Parameters

disabled

boolean

Returns

this

Inherited from

TextComponent.setDisabled


setPlaceholder()

setPlaceholder(placeholder): this

Defined in: obsidian.d.ts:354

Parameters

placeholder

string

Returns

this

Inherited from

TextComponent.setPlaceholder


setSampleEl()

setSampleEl(sampleEl): this

Defined in: obsidian.d.ts:2900

Parameters

sampleEl

HTMLElement

Returns

this


setValue()

setValue(value): this

Defined in: obsidian.d.ts:2904

Parameters

value

string

Returns

this

Overrides

TextComponent.setValue


then()

then(cb): this

Defined in: obsidian.d.ts:428

Facilitates chaining

Parameters

cb

(component) => any

Returns

this

Inherited from

TextComponent.then


updateSample()

updateSample(): void

Defined in: obsidian.d.ts:2912

Returns

void