Function

textFieldMapper

@ng-forge/dynamic-forms

Maps a text field definition to component inputs.

Text fields are display-only fields that don't participate in the form schema. This mapper handles the logic configuration by using the non-field-hidden resolver to evaluate conditions against the form value from RootFormRegistryService.

Hidden state is resolved using the non-field-hidden resolver which considers: 1. Explicit hidden: true on the field definition 2. Field-level logic array with type: 'hidden' conditions

Note: Text fields don't support disabled logic since they are display-only.

Signature

function textFieldMapper(fieldDef: TextField): Signal<Record<string, unknown>>

Parameters

NameTypeDescription
fieldDefTextFieldThe text field definition

Returns

Signal<Record<string, unknown>>