dynamic-forms-primeng / Function

addArrayItemButtonFieldMapper

Mapper for add array item button - preconfigures AddArrayItemEvent with array context.

Supports two modes:

  1. Inside array template: Uses ARRAY_CONTEXT to determine target array
  2. Outside array: Uses arrayKey property from field definition

Presentation

function addArrayItemButtonFieldMapper(
  fieldDef: AddArrayItemButtonField,
): Signal<Record<string, unknown>>;

Returns

Signal<Record<string, unknown>> -

Signal containing Record of input names to values for ngComponentOutlet

Parameters

NameTypeDescription
fieldDef
AddArrayItemButtonField

The add array item button field definition