TextAreaComponent
Represents the Kendo UI TextArea component for Angular.
Use this component to let users enter and edit multi-line text.
<kendo-textarea [(ngModel)]="value" [rows]="5" [cols]="30"></kendo-textarea>
Selector
kendo-textarea
Export Name
Accessible in templates as #kendoTextAreaInstance="kendoTextArea"
Inputs
Name | Type | Default | Description |
---|---|---|---|
adornmentsOrientation |
|
Specifies the orientation of the TextArea adornments. Use this property to set the position of adornments relative to each other. | |
cols |
|
Sets the visible width of the text area in average character width. | |
disabled |
|
|
Sets the disabled state of the TextArea component. To learn how to disable the component in reactive forms, refer to the article on Forms Support. |
fillMode |
|
|
Sets the background and border styles of the TextArea (see example). |
flow |
|
Specifies the flow direction of the TextArea sections. Use this property to set the position of adornments relative to the text area. | |
inputAttributes |
|
Sets the HTML attributes of the inner focusable input element. Some attributes are required for component functionality and cannot be changed. | |
maxlength |
|
Sets the maximum number of characters allowed in the text area. | |
placeholder |
|
The hint, which is displayed when the Textarea is empty. | |
readonly |
|
|
Sets the read-only state of the TextArea component. |
resizable |
|
|
Sets the resize behavior of the TextArea. |
rounded |
|
|
Sets the border radius of the TextArea (see example). |
rows |
|
Sets the visible height of the text area in lines. | |
selectOnFocus |
|
|
Determines whether the whole value will be selected when the TextArea is clicked. Defaults to |
showPrefixSeparator |
|
|
Shows the prefix separator in the TextArea. The separator is rendered only if a prefix template is declared. |
showSuffixSeparator |
|
|
Shows the suffix separator in the TextArea. The separator is rendered only if a suffix template is declared. |
size |
|
|
Sets the size of the TextArea. Controls the padding of the text area element (see example). |
tabindex |
|
|
Sets the |
title |
|
Sets the | |
value |
|
Provides a value for the TextArea component. |
Fields
Name | Type | Default | Description |
---|---|---|---|
input |
|
Represents the visible textarea element of the component. |
Events
Name | Type | Description |
---|---|---|
inputBlur |
|
Fires each time the internal textarea element gets blurred. This event is useful when adornments are used, in order to distinguish between blurring the textarea element and blurring the whole TextArea component. |
inputFocus |
|
Fires each time the user focuses the internal textarea element of the component. This event is useful when you need to distinguish between focusing the textarea element and focusing one of its adornments. |
blur |
|
Fires when the TextArea gets blurred. Use the |
focus |
|
Fires when the TextArea is focused. Use the |
valueChange |
|
Fires when the value changes or the TextArea is blurred (see example). The event does not fire when the value changes programmatically or through form control binding. |
Methods
blur |
---|
Blurs the TextArea. |
focus |
---|
Focuses the TextArea. |
updateValue | ||||||
---|---|---|---|---|---|---|
|