Sets app-wide defaults for CngxNumericInput
withNumericDefaults
Functionforms/input
projects/forms/input/input-config.ts
Description#
Sets app-wide defaults for CngxNumericInput.
localeoverridesLOCALE_IDfor numeric inputs only.decimalsandstepset formatting (stepdefault1).- 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/numericStepkeys.
provideInputConfig(withNumericDefaults({ decimals: 2, locale: 'de-CH' }));