import {MatInputModule} from '@angular/material/input';
MatTextareaAutosize
extends
CdkTextareaAutosize
Directive to automatically resize a textarea to fit its content.
Selector: textarea[mat-autosize] textarea[matTextareaAutosize]
Exported as: matTextareaAutosizeName | Description |
---|---|
@Input('cdkTextareaAutosize')
|
Whether autosizing is enabled or not |
@Input('mat-autosize')
|
|
@Input()
|
|
@Input()
|
|
@Input()
|
|
@Input('cdkAutosizeMaxRows')
|
Maximum amount of rows in the textarea. |
@Input('cdkAutosizeMinRows')
|
Minimum amount of rows in the textarea. |
reset | |
---|---|
Resets the textarea to it's original size |
resizeToFitContent | |
---|---|
Resize the textarea to fit its content. |
|
Parameters | |
force boolean = false
|
Whether to force a height recalculation. By default the height will be recalculated only if the value changed since the last call. |
MatInput
Directive that allows a native input to work inside a MatFormField
.
Selector: input[matInput] textarea[matInput] select[matNativeControl] input[matNativeControl] textarea[matNativeControl]
Exported as: matInputName | Description |
---|---|
@Input()
|
An object used to control when error messages are shown. |
@Input()
|
Whether the element is readonly. |
@Input()
|
Input type of the element. |
|
Whether the control is in an error state. |
focus | |
---|---|
Focuses the input. |
updateErrorState |
---|
MAT_INPUT_VALUE_ACCESSOR
This token is used to inject the object whose value should be set into MatInput
. If none is
provided, the native HTMLInputElement
is used. Directives like MatDatepickerInput
can provide
themselves for this token, in order to make MatInput
delegate the getting and setting of the
value to them.
const MAT_INPUT_VALUE_ACCESSOR: InjectionToken<{ value: any; }>;