Function

evaluateNonFieldHidden

@ng-forge/dynamic-forms

Evaluates the hidden state for non-form-bound elements synchronously.

This is a pure function (no signal allocation) that can be called directly inside an existing computed() block without creating ephemeral signal allocations.

The hidden state is determined by (in order of precedence): 1. Explicit hidden: true on the field definition 2. Field-level logic array with type: 'hidden' conditions

Signature

function evaluateNonFieldHidden(ctx: NonFieldLogicContext): boolean

Parameters

NameTypeDescription
ctxNonFieldLogicContext- The context containing form, logic array, and explicit hidden state

Returns

boolean