Function

groupFieldMapper

@ng-forge/dynamic-forms

Maps a group field definition to component inputs.

Group components create nested form structures under the group's key. The group component will inject the parent FIELD_SIGNAL_CONTEXT and create a scoped child injector for its nested fields.

Supports hidden state resolution via logic array or static hidden property.

Signature

function groupFieldMapper(fieldDef: GroupField<readonly GroupAllowedChildren[]>): Signal<Record<string, unknown>>

Parameters

NameTypeDescription
fieldDefGroupField<readonly GroupAllowedChildren[]>The group field definition

Returns

Signal<Record<string, unknown>>