Skip to main content
cngx-src documentation

CngxFieldRef

Interface

projects/forms/field/models.ts

Referenced by#

Import#

import { CngxFieldRef } from '@cngx/forms/field'

Description#

Abstraction over Angular Signal Forms' FieldState.

Consumers pass Field<T> (a callable that returns FieldState<T>) to CngxFormField. This interface documents the subset of FieldState that the form field system actually reads, providing a stable contract even as Signal Forms evolves.

Index#

Instance Properties#

dirty#Signal
Readonly
disabled#Signal
Readonly
disabledReasons#Signal
Readonly
errors#Signal
Readonly
errorSummary#Signal
Readonly
hidden#Signal
Readonly
invalid#Signal
Readonly
max#Signal
ReadonlyOptional
maxLength#Signal
ReadonlyOptional
min#Signal
ReadonlyOptional
minLength#Signal
ReadonlyOptional
name#Signal
Readonly
pattern#Signal
Readonly
pending#Signal
Readonly
readonly#Signal
Readonly
required#Signal
Readonly
submitting#Signal
Readonly
touched#Signal
Readonly
valid#Signal
Readonly
value#Signal
Readonly

Methods#

focusBoundControl#void
focusBoundControl(options?: FocusOptions)
@paramoptions?FocusOptions
markAsDirty#void
markAsTouched#void
reset#void
reset(value?: T)
@paramvalue?T