Textarea
import { KbqTextareaModule } from '@koobiq/components/textarea';

Selector: textarea[kbqTextarea]

Exported as: kbqTextarea
Properties
Name Description
@Input()
canGrow: boolean
Parameter enables or disables the ability to automatically increase the height. If set to false, the textarea becomes vertically resizable.
@Input()
disabled: boolean
@Input()
errorStateMatcher: ErrorStateMatcher
An object used to control when error messages are shown.
@Input()
freeRowsHeight: number
Distance from the last line to the bottom border
@Input()
id: string
@Input()
maxRows: InputSignal
Maximum number of lines to which the textarea will grow. Default unlimited
@Input()
required: boolean
@Input()
value: string
defaultErrorStateMatcher: ErrorStateMatcher
elementRef: ElementRef
errorState: boolean Whether the component is in an error state.
grow: () => void Grow textarea height to avoid vertical scroll
isBrowser: boolean
maxRowLimitReached: boolean Flag that will be set to true when the maximum number of lines is reached. Maximum number of rows can be set using the maxRows input.
ngControl: NgControl
parentForm: NgForm
parentFormGroup: FormGroupDirective
previousNativeValue: any
renderer: Renderer2
uid: string
Methods
dirtyCheckNativeValue
Does some manual dirty checking on the native textarea `value` property.
focus
Focuses the textarea.
focusChanged
Callback for the cases where the focused state of the textarea changes.
isBadInput
Checks whether the textarea is invalid based on the native validation.
onBlur
updateErrorState
const KBQ_TEXTAREA_VALUE_ACCESSOR: InjectionToken<{ value: any; }>;
Suggestions for improvement
If you found a mistake or want to improve the article, create an issue on GitHub.