TextAreaBinding
Defined in: TextAreaBinding.ts:5, TextAreaBinding.ts:38
Binding for textarea elements
Key features:
- Handles intermediate values during typing
- Auto-finalizes values on blur
- Manages error states and ARIA attributes
Implements
Section titled “Implements”FormBinding
Config
Section titled “Config”Config =
object
Defined in: TextAreaBinding.ts:11
aria-describedby?
Section titled “aria-describedby?”
optionalaria-describedby?:Attrs["aria-describedby"]
Defined in: TextAreaBinding.ts:26
[Extend] IDs of the elements describing the textarea; the ID of the error text is added while errors are reported
getter
Section titled “getter”getter: () =>
string|null
Defined in: TextAreaBinding.ts:13
Get the value from the model
Returns
Section titled “Returns”string | null
optionalid?:Attrs["id"]
Defined in: TextAreaBinding.ts:18
[Override] ID of the textarea element
onBlur?
Section titled “onBlur?”
optionalonBlur?:Attrs["onBlur"]
Defined in: TextAreaBinding.ts:24
[Extend] Blur handler
onChange?
Section titled “onChange?”
optionalonChange?:Attrs["onChange"]
Defined in: TextAreaBinding.ts:20
[Extend] Change handler
onFocus?
Section titled “onFocus?”
optionalonFocus?:Attrs["onFocus"]
Defined in: TextAreaBinding.ts:22
[Extend] Focus handler
setter
Section titled “setter”setter: (
value:string) =>void
Defined in: TextAreaBinding.ts:15
@action
Set the value to the model
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Constructor
Section titled “Constructor”new TextAreaBinding(
field,config):TextAreaBinding
Defined in: TextAreaBinding.ts:39
Parameters
Section titled “Parameters”FormField
config
Section titled “config”Returns
Section titled “Returns”TextAreaBinding
Members
Section titled “Members”config
Section titled “config”config:
TextAreaBinding.Config
Defined in: TextAreaBinding.ts:41
Implementation of
Section titled “Implementation of”FormBinding.config
onBlur
Section titled “onBlur”onBlur:
FocusEventHandler<HTMLTextAreaElement>
Defined in: TextAreaBinding.ts:57
onChange
Section titled “onChange”onChange:
ChangeEventHandler<HTMLTextAreaElement,HTMLTextAreaElement>
Defined in: TextAreaBinding.ts:51
@action
onFocus
Section titled “onFocus”onFocus:
FocusEventHandler<HTMLTextAreaElement>
Defined in: TextAreaBinding.ts:62
errorMessages
Section titled “errorMessages”Get Signature
Section titled “Get Signature”get errorMessages():
string|null
Defined in: TextAreaBinding.ts:68
Returns
Section titled “Returns”string | null
@computed
Get Signature
Section titled “Get Signature”get props():
object
Defined in: TextAreaBinding.ts:73
Binding properties which passed to the view component
Returns
Section titled “Returns”object
aria-describedby
Section titled “aria-describedby”aria-describedby:
string|undefined
aria-errormessage
Section titled “aria-errormessage”aria-errormessage:
string|undefined
aria-invalid
Section titled “aria-invalid”aria-invalid:
boolean|undefined
id:
string
onBlur
Section titled “onBlur”onBlur:
FocusEventHandler<HTMLTextAreaElement>
onChange
Section titled “onChange”onChange:
ChangeEventHandler<HTMLTextAreaElement,HTMLTextAreaElement>
onFocus
Section titled “onFocus”onFocus:
FocusEventHandler<HTMLTextAreaElement>
value:
string
Implementation of
Section titled “Implementation of”FormBinding.props
Get Signature
Section titled “Get Signature”get value():
string
Defined in: TextAreaBinding.ts:46
Returns
Section titled “Returns”string