TextAreaProps
Represents the props of the Kendo UI for Vue TextArea component.
Definition
Package:@progress/kendo-vue-inputs
Properties
ariaDescribedBy?
string
Sets the id values of the elements that describe the TextArea, like the HTML aria-describedby attribute.
For example, these elements can contain an error or a hint message.
ariaLabelledBy?
string
Sets the id values of the elements that label the TextArea.
autoSize?
boolean
Sets whether the TextArea changes its height to fit the content (see example).
Defaults to false.
className?
string
Sets a list of CSS classes to the TextArea.
defaultValue?
string | number | string[]
Sets the initial value of the TextArea when you do not set value (see example).
dir?
string
Sets the dir HTML attribute of the TextArea.
disabled?
boolean
Sets whether the TextArea is disabled (see example).
fillMode?
"flat" | "solid" | "outline"
Sets the fill mode of the TextArea. The fill mode controls the background and the border.
The available options are:
- solid
- outline
- flat
undefined
flow?
string
Sets the flow direction of the TextArea sections.
'horizontal'
iconName?
string
Sets the name of the input icon. This property works only with the Kendo UI for Vue FontIcons. To learn how to load the Font Icons in your project, see the Icons article.
id?
string
Sets the id of the textarea element. A label can use it as its target.
inputAttributes?
Object
Sets the native HTML attributes of the inner focusable textarea element.
You cannot change the attributes that the TextArea needs to work.
inputClass?
string
Sets additional CSS classes to the textarea element.
inputPrefix?
string | boolean | Object | Function
Sets the content of the TextArea prefix. Accepts a slot name, a render function, or a Vue component.
The template receives the current value, the valid state, and the className of the prefix.
inputSuffix?
string | boolean | Object | Function
Sets the content of the TextArea suffix. Accepts a slot name, a render function, or a Vue component.
The template receives the current value, the valid state, and the className of the suffix.
maxlength?
string
minlength?
string
modelValue?
string | number | string[]
Sets the value of the TextArea when you use v-model.
name?
string
Sets the name attribute of the textarea element.
onBlur?
(event: TextAreaBlurEvent) => void
Fires when the TextArea loses the focus. The event name is blur.
onChange?
(event: TextAreaChangeEvent) => void
Fires when the value of the TextArea changes. The event name is change.
onFocus?
(event: TextAreaFocusEvent) => void
Fires when the TextArea gets the focus. The event name is focus.
placeholder?
string
Sets the hint text that the TextArea shows when it is empty.
readOnly?
boolean
Sets whether the TextArea is read-only.
required?
boolean
Sets whether null is a valid value for the component.
resizable?
string
Sets how the user can resize the TextArea.
'vertical'
rounded?
"small" | "medium" | "large" | "none" | "full"
Sets the border radius of the TextArea.
The available options are:
- none
- small
- medium
- large
- full
undefined
rows?
number
Sets the number of visible text rows. This sets the height of the TextArea (see example).
showClearButton?
boolean
Sets whether the TextArea shows the clear button. Defaults to false.
showLoadingIcon?
boolean
Sets whether the TextArea shows the loading icon. Defaults to false.
showValidationIcon?
boolean
Sets whether the TextArea shows the validation icon. Defaults to false.
size?
"small" | "medium" | "large"
Sets the size of the TextArea.
The available options are:
- small
- medium
- large
undefined
tabIndex?
number
Sets the tabIndex attribute of the TextArea.
Defaults to 0.
title?
string
Sets the title attribute of the TextArea.
valid?
boolean
Overrides the validity state of the component.
When you set valid, the component ignores the required property.
validationMessage?
string
Sets the form error message of the component. If you set it to an empty string, the component shows no error.
validityStyles?
boolean
Sets whether the TextArea shows its invalid state. When you set it to false, the TextArea shows no invalid styles.
true
value?
string | number | string[]
Sets the value of the TextArea (see example).
wrapperClass?
string
Sets additional CSS classes to the wrapper element.