dynamic-forms-primeng / Class

PrimeTextareaControlComponent

Decorators:@Component
Selectors:df-prime-textarea-control
Implements:FormValueControl<string>

A wrapper component for PrimeNG's textarea that implements FormValueControl. This allows it to work with Angular's [field] directive from @angular/forms/signals.

Properties

NameTypeDescription
ariaDescribedBy
r
InputSignal<string | null>

aria-describedby IDs passed from parent

ariaInvalid
p r
Signal<boolean>

aria-invalid: true when field is invalid AND touched

ariaRequired
p r
Signal<true | null>

aria-required: true if field is required, null otherwise

autoResize
r
InputSignal<boolean>
cols
r
InputSignal<number | undefined>
disabled
r
implements FormUiControl
InputSignal<boolean>

Whether the field is disabled

invalid
r
implements FormUiControl
InputSignal<boolean>

Whether the field is invalid (from Field directive)

maxlength
r
InputSignal<number | undefined>
placeholder
r
InputSignal<string>
readonly
r
implements FormUiControl
InputSignal<boolean>

Whether the field is readonly

required
r
implements FormUiControl
InputSignal<boolean>

Whether the field is required (from Field directive)

rows
r
InputSignal<number>
styleClass
r
InputSignal<string>
tabIndex
r
InputSignal<number | undefined>
touched
r
implements FormUiControl
ModelSignal<boolean>

Tracks whether the field has been touched - used by Field directive

value
r
implements FormValueControl
ModelSignal<string>

The value of the textarea - required by FormValueControl

Methods

onBlur()

Marks the field as touched when textarea loses focus

Presentation
onBlur(): void;
Returns
void