MomentFormatComponent
Extends
Constructors
new MomentFormatComponent()
new MomentFormatComponent(
containerEl
):MomentFormatComponent
Parameters
• containerEl: HTMLElement
Returns
Inherited from
Properties
disabled
disabled:
boolean
Inherited from
inputEl
inputEl:
HTMLInputElement
Inherited from
sampleEl
sampleEl:
HTMLElement
Methods
getValue()
getValue():
string
Returns
string
Inherited from
onChange()
onChange(
callback
):this
Parameters
• callback
Returns
this
Inherited from
onChanged()
onChanged():
void
Returns
void
Overrides
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
setPlaceholder()
setPlaceholder(
placeholder
):this
Parameters
• placeholder: string
Returns
this
Inherited from
setSampleEl()
setSampleEl(
sampleEl
):this
Parameters
• sampleEl: HTMLElement
Returns
this
setValue()
setValue(
value
):this
Parameters
• value: string
Returns
this
Overrides
then()
then(
cb
):this
Facilitates chaining
Parameters
• cb
Returns
this
Inherited from
updateSample()
updateSample():
void
Returns
void