Function

buildBaseInputs

@ng-forge/dynamic-forms

Builds base input properties from a field definition.

This is a helper function that extracts common field properties. Used by mappers to build the inputs record.

Signature

function buildBaseInputs(
  fieldDef: FieldDef<unknown, FieldMeta>,
  defaultProps?: Record<string, unknown>
): Record<string, unknown>

Parameters

NameTypeDescription
fieldDefFieldDef<unknown, FieldMeta>The field definition to extract properties from
defaultProps?Record<string, unknown>Optional form-level default props to merge with field props

Returns

Record<string, unknown>