@microsoft/fast-foundation > TextArea
TextArea class
A Text Area Custom HTML Element. Based largely on the <textarea> element.
- The default slot for the label
label - The label
root - The element wrapping the control
control - The textarea element
change - Emits a custom 'change' event when the textarea emits a change event
Signature:export declare class TextArea extends FormAssociatedTextArea 
Properties
| Property | Modifiers | Type | Description | 
|---|---|---|---|
| autofocus | boolean | Indicates that this element should get focus after the page finishes loading. | |
| cols | number | Sizes the element horizontally by a number of character columns. | |
| formId | string | The id of the form the element is associated to | |
| list | string | Allows associating a datalist to the element by https://developer.mozilla.org/en-US/docs/Web/API/Element/id. | |
| maxlength | number | The maximum number of characters a user can enter. | |
| minlength | number | The minimum number of characters a user can enter. | |
| name | string | The name of the element. | |
| placeholder | string | Sets the placeholder value of the element, generally used to provide a hint to the user. | |
| readOnly | boolean | When true, the control will be immutable by user interaction. See readonly HTML attribute for more information. | |
| resize | TextAreaResize | The resize mode of the element. | |
| rows | number | Sizes the element vertically by a number of character rows. | |
| spellcheck | boolean | Sets if the element is eligible for spell checking but the UA. | 
Methods
| Method | Modifiers | Description | 
|---|---|---|
| select() | Selects all the text in the text area |