dynamic-forms / Function

groupFieldMapper

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.

Presentation

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

Returns

Signal<Record<string, unknown>> -

Signal containing Record of input names to values for ngComponentOutlet

Parameters

NameTypeDescription
fieldDef
GroupField<readonly GroupAllowedChildren[]>

The group field definition