Skip to main content
cngx-src documentation

withNumericDefaults

Functionforms/input

projects/forms/input/input-config.ts

Description#

Sets app-wide defaults for CngxNumericInput.

  • locale overrides LOCALE_ID for numeric inputs only.
  • decimals and step set formatting (step default 1).
  • Each key applies only when supplied; a partial override leaves the rest at the directive's defaults.
  • Per-input bindings still win over these.
  • Maps to the numericLocale / numericDecimals / numericStep keys.
provideInputConfig(withNumericDefaults({ decimals: 2, locale: 'de-CH' }));

Signature#

withNumericDefaults(defaults)

Parameters#

@paramdefaults

Returns#

InputConfigFeature