libs/core/dynamic-form/text-area/src/text-area.model.ts
Definition of text area
Properties |
autosize (Optional) | |
Type |
boolean
|
Default value |
true
|
Description
|
Property that allow the component to auto-size when the are more written lines than rows. |
maxLength (Optional) | |
Type |
number
|
Description
|
The maximum number of characters allowed in the element. |
rows (Optional) | |
Type |
number
|
Default value |
2
|
Description
|
Number of visible text lines for the control. |
type | |
Description
|
Specifies the type of the field as |
import { DfInteractiveBaseConfig } from '@allianz/taly-core/dynamic-form';
/**
* Definition of the type - dynamic text area
*/
export const DfTextAreaTypeName = 'TEXT_AREA';
/**
* Definition of text area
*
* @additionalProperties false
*/
export interface DfTextAreaConfig extends DfInteractiveBaseConfig {
/**
* Specifies the type of the field as `TEXT_AREA`.
*/
type: typeof DfTextAreaTypeName;
/**
* Number of visible text lines for the control.
* @default 2
*/
rows?: number;
/**
* Property that allow the component to auto-size when the are more written lines than rows.
* @default true
*/
autosize?: boolean;
/**
* The maximum number of characters allowed in the <input> element.
*/
maxLength?: number;
}