Function
evaluateNonFieldDisabled
@ng-forge/dynamic-forms
Evaluates the disabled state for non-form-bound elements synchronously.
This is a pure function (no signal allocation) that can be called directly inside
an existing block without creating ephemeral signal allocations.computed()
The disabled state is determined by (in order of precedence):
1. Explicit disabled: true on the field definition
2. Field-level logic array with type: 'disabled' conditions
Signature
function evaluateNonFieldDisabled(ctx: NonFieldLogicContext): booleanParameters
| Name | Type | Description |
|---|---|---|
ctx | NonFieldLogicContext | - The context containing form, logic array, and explicit disabled state |
Returns
boolean
packages/dynamic-forms/src/lib/core/logic/non-field-logic-resolver.ts:407