Interface

FieldBoundAddonActionContext

@ng-forge/dynamic-forms

Field-bound variant — the addon is attached to a real field and has a working value-writer. The common case for pi-button / mat-button / bs-button / ion-button inside an adapter input field.

setValue is non-optional here; the optional chain (ctx.setValue?.()) is unnecessary noise once you've narrowed via {@link isFieldBoundContext}.

Signature

interface FieldBoundAddonActionContext<
  TValue = unknown
>
  extends AddonActionContextBase<TValue>

Type Parameters

NameConstraintDefaultDescription
TValue-unknown-

Properties

NameTypeDescription
form ReadonlyFieldTree<TValue>Read-only view of the host field's tree — same view wrappers receive.
setValue (next: TValue) => voidPush a new value into the host field.