Skip to content

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
  • FormBinding

Config = object

Defined in: TextAreaBinding.ts:10

getter: () => string | null

Defined in: TextAreaBinding.ts:12

Get the value from the model

string | null

optional id?: Attrs["id"]

Defined in: TextAreaBinding.ts:17

[Override] ID of the textarea element

optional onBlur?: Attrs["onBlur"]

Defined in: TextAreaBinding.ts:23

[Extend] Blur handler

optional onChange?: Attrs["onChange"]

Defined in: TextAreaBinding.ts:19

[Extend] Change handler

optional onFocus?: Attrs["onFocus"]

Defined in: TextAreaBinding.ts:21

[Extend] Focus handler

setter: (value: string) => void

Defined in: TextAreaBinding.ts:14

@action

Set the value to the model

string

void

new TextAreaBinding(field, config): TextAreaBinding

Defined in: TextAreaBinding.ts:36

FormField

TextAreaBinding.Config

TextAreaBinding

config: TextAreaBinding.Config

Defined in: TextAreaBinding.ts:38

FormBinding.config


onBlur: FocusEventHandler<HTMLTextAreaElement>

Defined in: TextAreaBinding.ts:54


onChange: ChangeEventHandler<HTMLTextAreaElement, HTMLTextAreaElement>

Defined in: TextAreaBinding.ts:48

@action


onFocus: FocusEventHandler<HTMLTextAreaElement>

Defined in: TextAreaBinding.ts:59


get errorMessages(): string | null

Defined in: TextAreaBinding.ts:65

string | null

@computed


get props(): object

Defined in: TextAreaBinding.ts:70

Binding properties which passed to the view component

object

aria-errormessage: string | undefined

aria-invalid: boolean | undefined

id: string

onBlur: FocusEventHandler<HTMLTextAreaElement>

onChange: ChangeEventHandler<HTMLTextAreaElement, HTMLTextAreaElement>

onFocus: FocusEventHandler<HTMLTextAreaElement>

value: string

FormBinding.props


get value(): string

Defined in: TextAreaBinding.ts:43

string