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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”fieldPath
Section titled “fieldPath”SchemaPath<T>
The schema path to the field.
options?
Section titled “options?”LogicOptions
Configuration for the disabled/hidden states. Can be a boolean, a function returning boolean, or an Observable/Signal.
Returns
Section titled “Returns”void
Example
Section titled “Example”disabledHidden(path.secretCode, not(valueEquals(path.isAdmin, true)));