Skip to main content
cngx-src documentation

withMaskPlaceholder

Functionforms/input

projects/forms/input/input-config.ts

Description#

Sets the global placeholder character CngxInputMask shows for unfilled slots in guide mode. Library default is '_'.

  • Resolution order: [placeholder] input, then config.maskPlaceholder, then '_'.
  • Sets the app-wide baseline for every masked input that does not bind its own [placeholder].
  • Also fills the aria-placeholder the mask exposes.
provideInputConfig(withMaskPlaceholder('ยท')); // middle dot

Signature#

withMaskPlaceholder(char: string)

Parameters#

@paramcharstring

Returns#

InputConfigFeature