Skip to main content
cngx-src documentation

FormFieldConfig

Interface

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#

autocompleteMappings#Record
Optional

Maps field names to autocomplete attribute values. Merged with built-in defaults by withAutocompleteMappings().

Optional

When 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.

errorMessages#ErrorMessageMap
Optional

Error message map for auto-rendering.

errorStrategy#ErrorStrategyFn
Optional

Fully 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.

noSpellcheckFields#ReadonlySet
Optional

Set of field names where spellcheck should be disabled. Merged with built-in defaults by withNoSpellcheck().

requiredMarker#string | unknown
Optional

When 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".