dynamic-forms / Interface

ResolveArrayItemOptions

Generic types:TModel

Options for resolving an array item.

Properties

NameTypeDescription
arrayField
ArrayField<readonly ArrayAllowedChildren[]>

The array field definition containing this item.

destroyRef
DestroyRef

DestroyRef to abort resolution if component is destroyed.

fieldTree
FieldTree<unknown> | null

The field tree for this item (null for object items).

index
number

The initial index of this item in the array.

itemOrderSignal
Signal<string[]>

Signal containing ordered item IDs for reactive index derivation.

loadTypeComponent
(type: string) => Promise<unknown>

Function to async load the component for the field type.

parentFieldSignalContext
FieldSignalContext<TModel>

Parent context for accessing form state and values.

parentInjector
Injector

Parent injector for creating scoped child injector.

registry
Map<string, FieldTypeDefinition<any>>

Field registry for looking up field type definitions.

template
FieldDef<unknown>

The field template defining the array item structure.