Interface

NonFieldLogicContext

@ng-forge/dynamic-forms

Context for resolving state (hidden/disabled) for non-form-bound elements.

This is a generalized context that can be used by any field mapper (buttons, text fields, or any non-form-bound elements) to evaluate logic from a logic array.

Note: While this context accepts the full LogicConfig[] for flexibility, the resolver functions only process hidden and disabled types. Other logic types (readonly, required, derivation) are ignored for non-form-bound elements.

@public

Signature

interface NonFieldLogicContext

Properties

NameTypeDescription
form FieldTree<unknown, string | number>The form's FieldTree instance (supports both string and number keys for array indices)
fieldLogic ?LogicConfig[]

Field-level logic array containing conditions. Accepts full LogicConfig[] for compatibility, but only hidden and disabled types are processed.

explicitValue ?booleanExplicit state from field definition (e.g., hidden: true or disabled: true)
formValue ?unknownCurrent form value for evaluating conditional expressions
logger ?LoggerOptional logger for diagnostic output. Falls back to no-op logger if not provided.