File

libs/core/dynamic-form/paragraph/src/paragraph.model.ts

Extends

DfBaseConfig

Index

Properties

Properties

copytextOption (Optional)
Type "small" | "medium" | "normal" | "large"
Description

The nxCopytext variant. This determines the visuals of the paragraph.

cssClasses (Optional)
Type string
Description

Property to add css classes via configuration

icon (Optional)
Type IconDefinition
Description

Configuration of the icon to be place before the label.

type
Description

Specifies the type of the field as PARAGRAPH.

import { DfBaseConfig } from '@allianz/taly-core/dynamic-form';
import { IconSize } from '@aposin/ng-aquila/icon';

/**
 * The value to use for the `type` attribute of paragraph
 * formfield configs.
 */
export const DfParagraphTypeName = 'PARAGRAPH';

/**
 * @additionalProperties false
 */
export interface DfParagraphConfig extends DfBaseConfig {
  /**
   * Specifies the type of the field as `PARAGRAPH`.
   */
  type: typeof DfParagraphTypeName;

  /**
   * The nxCopytext variant. This determines the visuals of the paragraph.
   */
  copytextOption?: 'small' | 'medium' | 'normal' | 'large';

  /**
   * Configuration of the icon to be place before the label.
   */
  icon?: IconDefinition;

  /**
   * Property to add css classes via configuration
   * @examples ["nx-font-weight-bold nx-margin-bottom-s"]
   */
  cssClasses?: string;
}

/**
 * @additionalProperties false
 */
export interface IconDefinition {
  /**
   * Name of the NDBX icon.
   * Available icon names can be found in the NDBX documentation: https://ngx-ndbx.frameworks.allianz.io/documentation/icon/overview.
   * @examples ["info-circle", "exclamation-circle"]
   *
   */
  name: string;
  /**
   * Size of the icon
   */
  size: IconSize;
}

results matching ""

    No results matching ""