PresetCollaborators
@ng-forge/dynamic-forms
Optional collaborators a preset may need beyond the base context. Passed by the button kind component which has access to its own DI scope.
Adapter input components fill in the collaborators their preset semantics
require:
- mat-input / bs-input / prime-input / ion-input populate
typeOverride + fieldValueSetter + fieldDefaultValueGetter +
baselineType from their own DI scope.
- Addons rendered outside any input field receive { logger } only and
the input-specific presets warn-and-no-op.
Signature
interface PresetCollaboratorsProperties
| Name | Type | Description |
|---|---|---|
typeOverride ? | WritableSignal<string | undefined> | undefined | Per-field input-type override signal — populated only inside an input field. |
fieldValueSetter ? | ((next: unknown) => void) | undefined | Writer that pushes a value into the host field's tree. |
fieldDefaultValueGetter ? | (() => unknown) | undefined | Read the host field's configured default value (from the form's
|
baselineType ? | (() => string | undefined) | undefined | Baseline configured input type (from |
logger | Logger | Logger for warnings about presets that can't be fulfilled in this context. Passed via collaborators (rather than injected) because |
packages/dynamic-forms/src/lib/addons/run-preset-action.ts:17