src/app/core/entity-details/form/field-group.ts
A group of related form fields displayed within a Form component.
Properties |
|
| displayCondition |
displayCondition:
|
Type : DataFilter<any>
|
| Optional |
|
(Optional) A Mango/MongoDB style query condition that determines whether the whole group is displayed.
Works like |
| fields |
fields:
|
Type : ColumnConfig[]
|
| header |
header:
|
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>;
}