Skip to main content
cngx-src documentation

CNGX_INPUT_CONFIG

Tokenv0.1.0

InjectionToken<InputConfig>

Description#

DI token holding the resolved InputConfig for the @cngx/forms/input directive family. Every input directive injects it to read app- or subtree-level defaults, falling back to its own per-directive default for any key left unset.

Do not bind it directly. Configure it through provideInputConfig(...features) composed from the with* features; a raw { provide: CNGX_INPUT_CONFIG, useValue } bypasses the per-key merge those features encode.

  • providedIn: 'root' with an empty-config factory, so it resolves without a provider and each directive keeps its built-in default.
  • Consumed by CngxInputMask, CngxNumericInput, CngxCopyValue, CngxFileDrop, CngxInputClear, CngxOtpInput, CngxCapsLock, CngxPasswordStrength, CngxInputFilter, and CngxSensitiveValue.
  • Token resolution is nearest-wins: a config in a component's viewProviders replaces an ancestor's for that subtree, it does not deep-merge.

Type#

InjectionToken<InputConfig>

Provided in#

'root'