AbstractTextComponent
Defined in: obsidian.d.ts:329
Extends
ValueComponent
<string
>
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
Overrides
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
inputEl
inputEl:
T
Defined in: obsidian.d.ts:333
Methods
getValue()
getValue():
string
Defined in: obsidian.d.ts:346
Returns
string
Overrides
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
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
then()
then(
cb
):this
Defined in: obsidian.d.ts:428
Facilitates chaining
Parameters
cb
(component
) => any
Returns
this