FormFieldConfig
projects/forms/field/form-field.token.ts
Import#
import { FormFieldConfig } from '@cngx/forms/field'
Description#
Application-wide configuration for cngx form fields.
Index#
Instance Properties#
RecordMaps field names to autocomplete attribute values.
Merged with built-in defaults by withAutocompleteMappings().
ConstraintHintFormattersWhen set, auto-generated constraint hints are shown (e.g. "8–64 characters").
Contains the resolved formatters (merged with English defaults by withConstraintHints()).
undefined means disabled.
ErrorStrategyFnFully overrides the default error gate (touched OR errorScope.showErrors).
The presenter invokes this inside untracked() so strategy-internal
signal reads cannot widen showError's dependency graph.
ReadonlySetSet of field names where spellcheck should be disabled.
Merged with built-in defaults by withNoSpellcheck().
string | unknownWhen set, CngxLabel auto-renders a required marker for required fields.
The string value is the marker text (e.g. '*' or '(required)').
Set to false or omit to disable. Individual labels can override via
[showRequired]="false".
CngxFieldSkinApp-wide default appearance for every field and every control that
composes CngxFieldSkinHost. Set it with withFieldSkin.
Loses to a per-instance binding: a control resolves its own
[cngxFieldSkin] first, then the surrounding field's [skin], then
this value, then 'outline'.