Function

baseFieldMapper

@ng-forge/dynamic-forms

Base field mapper that extracts common field properties into component inputs.

Returns a Signal containing the Record of input names to values that will be passed to ngComponentOutlet. The signal enables reactive updates.

Signature

function baseFieldMapper(fieldDef: FieldDef<unknown, FieldMeta>): Signal<Record<string, unknown>>

Parameters

NameTypeDescription
fieldDefFieldDef<unknown, FieldMeta>The field definition to map

Returns

Signal<Record<string, unknown>>