Interface

FieldWrapperContract

@ng-forge/dynamic-forms

Contract that wrapper components must satisfy.

Each wrapper exposes a #fieldComponent ViewContainerRef where the inner content (next wrapper, or the field) is rendered imperatively. Config properties (minus type) are set on the component via setInput; a wrapper opts into a key by declaring a matching input(), and unknown keys are silently dropped. Wrappers may additionally declare a fieldInputs input for the wrapped field's mapper outputs (see WrapperFieldInputs for when that's undefined).

Signature

interface FieldWrapperContract

Properties

NameTypeDescription
fieldComponent Signal<ViewContainerRef>ViewContainerRef slot where inner content is rendered

Examples

```typescript