MomentFormatComponent
Defined in: obsidian.d.ts:2886
Extends
Constructors
new MomentFormatComponent()
new MomentFormatComponent(
containerEl
):MomentFormatComponent
Defined in: obsidian.d.ts:4057
Parameters
containerEl
Returns
Inherited from
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
disabled
disabled:
boolean
Defined in: obsidian.d.ts:423
Inherited from
inputEl
inputEl:
HTMLInputElement
Defined in: obsidian.d.ts:333
Inherited from
sampleEl
sampleEl:
HTMLElement
Defined in: obsidian.d.ts:2890
Methods
getValue()
getValue():
string
Defined in: obsidian.d.ts:346
Returns
string
Inherited from
onChange()
onChange(
callback
):this
Defined in: obsidian.d.ts:362
Parameters
callback
(value
) => any
Returns
this
Inherited from
onChanged()
onChanged():
void
Defined in: obsidian.d.ts:2908
Returns
void
Overrides
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
setPlaceholder()
setPlaceholder(
placeholder
):this
Defined in: obsidian.d.ts:354
Parameters
placeholder
string
Returns
this
Inherited from
setSampleEl()
setSampleEl(
sampleEl
):this
Defined in: obsidian.d.ts:2900
Parameters
sampleEl
Returns
this
setValue()
setValue(
value
):this
Defined in: obsidian.d.ts:2904
Parameters
value
string
Returns
this
Overrides
then()
then(
cb
):this
Defined in: obsidian.d.ts:428
Facilitates chaining
Parameters
cb
(component
) => any
Returns
this
Inherited from
updateSample()
updateSample():
void
Defined in: obsidian.d.ts:2912
Returns
void