GroupField
@ng-forge/dynamic-forms
Group field interface for creating logical field groupings that map to object values Groups create nested form structures where child field values are collected into an object This is a programmatic grouping only - users cannot customize this field type
TypeScript cannot enforce field nesting rules due to circular dependency limitations. For documentation: Groups should contain rows and leaf fields, but NOT pages or other groups. Runtime validation enforces these rules.
Note: Groups are container fields and do not support meta since they have no native form element.
Signature
interface GroupField<
TFields extends readonly GroupAllowedChildren[] = readonly GroupAllowedChildren[]
>
extends FieldDef<never>Type Parameters
| Name | Constraint | Default | Description |
|---|---|---|---|
TFields | readonly GroupAllowedChildren[] | readonly GroupAllowedChildren[] | - |
Properties
| Name | Type | Description |
|---|---|---|
type | "group" | - |
fields | TFields | - |
label ? | never | Groups do not have a label property - they are logical containers only * |
meta ? | never | Groups do not support meta - they have no native form element * |
logic ? | ContainerLogicConfig[] | Logic configurations for conditional group visibility. Only 'hidden' type logic is supported for groups. |
packages/dynamic-forms/src/lib/definitions/default/group-field.ts:16