File

libs/core/dynamic-form/text-area/src/text-area.model.ts

Description

Definition of text area

Extends

DfInteractiveBaseConfig

Index

Properties

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.

optionalLabel (Optional)
Type string
Description

Text that is additionally displayed in the label if the field is not mandatory.

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 TEXT_AREA.

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;

  /**
   * Text that is additionally displayed in the label if the field is not mandatory.
   * @examples ["Optional"]
   */
  optionalLabel?: string;
}

results matching ""

    No results matching ""