Component

ContainerFieldComponent

@ng-forge/dynamic-forms

Layout container that wraps child fields with UI chrome.

Resolves children like a row, then chains wrapper components around them using imperative ViewContainerRef.createComponent() — each wrapper's #fieldComponent slot hosts the next wrapper or the children template.

Does not create a new form context - fields share the parent's context. Field values are flattened into the parent form (no nesting under container key). Purely a visual/layout container with no impact on form structure.

Signature

class ContainerFieldComponent

Properties

NameTypeDescription
environmentInjector EnvironmentInjector-
field InputSignal<ContainerField<readonly ContainerAllowedChildren[], readonly WrapperConfig[]>>-
key InputSignal<string>-
className InputSignal<string>-
hidden InputSignal<boolean>-
hostClasses Signal<string>-
disabled Signal<boolean>-
resolvedFields Signal<ResolvedField[]>-