Skip to content

disabledHidden

disabledHidden<T>(fieldPath, options?): void

Defined in: projects/ngx-signal-schema/src/lib/rules/disabled-hidden.ts:31

Applies a combined “inactive UI” state by both disabling and hiding a field.

Use this when a field should not be visible and should also be non-interactive at the control level while hidden. Note that hidden() alone already excludes the field from validation / parent form state; this helper additionally applies the disabled state so bound controls reflect disabled semantics as well.

This is fully type-agnostic and can be used for any field shape.

T

SchemaPath<T>

The schema path to the field.

LogicOptions

Configuration for the disabled/hidden states. Can be a boolean, a function returning boolean, or an Observable/Signal.

void

disabledHidden(path.secretCode, not(valueEquals(path.isAdmin, true)));