dynamic-forms-primeng / Function

buttonFieldMapper

Generic button mapper for custom events or basic buttons. For specific button types (submit, next, prev, add/remove array items), use the dedicated field types and their specific mappers.

Presentation

function buttonFieldMapper(
  fieldDef: FieldDef<Record<string, unknown>>,
): Signal<Record<string, unknown>>;

Returns

Signal<Record<string, unknown>> -

Signal containing Record of input names to values for ngComponentOutlet

Parameters

NameTypeDescription
fieldDef
FieldDef<Record<string, unknown>>

The button field definition