TextAreaBinding
Defined in: TextAreaBinding.ts:4, TextAreaBinding.ts:35
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:10
getter
Section titled “getter”getter: () =>
string|null
Defined in: TextAreaBinding.ts:12
Get the value from the model
Returns
Section titled “Returns”string | null
optionalid?:Attrs["id"]
Defined in: TextAreaBinding.ts:17
[Override] ID of the textarea element
onBlur?
Section titled “onBlur?”
optionalonBlur?:Attrs["onBlur"]
Defined in: TextAreaBinding.ts:23
[Extend] Blur handler
onChange?
Section titled “onChange?”
optionalonChange?:Attrs["onChange"]
Defined in: TextAreaBinding.ts:19
[Extend] Change handler
onFocus?
Section titled “onFocus?”
optionalonFocus?:Attrs["onFocus"]
Defined in: TextAreaBinding.ts:21
[Extend] Focus handler
setter
Section titled “setter”setter: (
value:string) =>void
Defined in: TextAreaBinding.ts:14
@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:36
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:38
Implementation of
Section titled “Implementation of”FormBinding.config
onBlur
Section titled “onBlur”onBlur:
FocusEventHandler<HTMLTextAreaElement>
Defined in: TextAreaBinding.ts:54
onChange
Section titled “onChange”onChange:
ChangeEventHandler<HTMLTextAreaElement,HTMLTextAreaElement>
Defined in: TextAreaBinding.ts:48
@action
onFocus
Section titled “onFocus”onFocus:
FocusEventHandler<HTMLTextAreaElement>
Defined in: TextAreaBinding.ts:59
errorMessages
Section titled “errorMessages”Get Signature
Section titled “Get Signature”get errorMessages():
string|null
Defined in: TextAreaBinding.ts:65
Returns
Section titled “Returns”string | null
@computed
Get Signature
Section titled “Get Signature”get props():
object
Defined in: TextAreaBinding.ts:70
Binding properties which passed to the view component
Returns
Section titled “Returns”object
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:43
Returns
Section titled “Returns”string