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 NonFieldLogicContextProperties
| Name | Type | Description |
|---|---|---|
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 ? | boolean | Explicit state from field definition (e.g., hidden: true or disabled: true) |
formValue ? | unknown | Current form value for evaluating conditional expressions |
logger ? | Logger | Optional logger for diagnostic output. Falls back to no-op logger if not provided. |
packages/dynamic-forms/src/lib/core/logic/non-field-logic-resolver.ts:81