Skip to content

MomentFormatComponent

Extends

Constructors

new MomentFormatComponent()

new MomentFormatComponent(containerEl): MomentFormatComponent

Parameters

containerEl: HTMLElement

Returns

MomentFormatComponent

Inherited from

TextComponent.constructor

Properties

disabled

disabled: boolean

Inherited from

TextComponent.disabled


inputEl

inputEl: HTMLInputElement

Inherited from

TextComponent.inputEl


sampleEl

sampleEl: HTMLElement

Methods

getValue()

getValue(): string

Returns

string

Inherited from

TextComponent.getValue


onChange()

onChange(callback): this

Parameters

callback

Returns

this

Inherited from

TextComponent.onChange


onChanged()

onChanged(): void

Returns

void

Overrides

TextComponent.onChanged


registerOptionListener()

registerOptionListener(listeners, key): this

Parameters

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

key: string

Returns

this

Inherited from

TextComponent.registerOptionListener


setDefaultFormat()

setDefaultFormat(defaultFormat): this

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

Parameters

defaultFormat: string

Returns

this


setDisabled()

setDisabled(disabled): this

Parameters

disabled: boolean

Returns

this

Inherited from

TextComponent.setDisabled


setPlaceholder()

setPlaceholder(placeholder): this

Parameters

placeholder: string

Returns

this

Inherited from

TextComponent.setPlaceholder


setSampleEl()

setSampleEl(sampleEl): this

Parameters

sampleEl: HTMLElement

Returns

this


setValue()

setValue(value): this

Parameters

value: string

Returns

this

Overrides

TextComponent.setValue


then()

then(cb): this

Facilitates chaining

Parameters

cb

Returns

this

Inherited from

TextComponent.then


updateSample()

updateSample(): void

Returns

void