src/app/core/entity-details/form/field-group.ts

Description

A group of related form fields displayed within a Form component.

Index

Properties

Properties

displayCondition
displayCondition: DataFilter<any>
Type : DataFilter<any>
Optional

(Optional) A Mango/MongoDB style query condition that determines whether the whole group is displayed. Works like EntitySchemaField.displayCondition, applied to every field of this group (in addition to the field's own condition).

fields
fields: ColumnConfig[]
Type : ColumnConfig[]
header
header: TranslatableText
Type : TranslatableText
Optional

may be configured per language; resolved before it is rendered

import { DataFilter } from "#src/app/core/filter/filters/filters";
import { ColumnConfig } from "../../common-components/entity-form/FormConfig";
import { TranslatableText } from "../../config/multi-lingual-config";

/**
 * A group of related form fields displayed within a Form component.
 */
export interface FieldGroup {
  /** may be configured per language; resolved before it is rendered */
  header?: TranslatableText;
  fields: ColumnConfig[];

  /**
   * (Optional) A Mango/MongoDB style query condition that determines whether the whole group is displayed.
   * Works like `EntitySchemaField.displayCondition`, applied to every field of this group
   * (in addition to the field's own condition).
   */
  displayCondition?: DataFilter<any>;
}

results matching ""

    No results matching ""