Skip to main content
cngx-src documentation

createCommitErrorAnnouncer

Functionforms/select/commit

projects/forms/select/shared/commit-error-announcer.ts

Description#

Default factory for the scalar commit-error announcer. Dispatches via policy.kind: 'verbose' announces the formatted error message at the configured severity; 'soft' calls the soft-announce hook (CngxTypeahead removal pattern).

Override the CNGX_COMMIT_ERROR_ANNOUNCER_FACTORY token to swap in telemetry or locale-aware variants.

Signature#

createCommitErrorAnnouncer(opts: CngxCommitErrorAnnouncerOptions)

Parameters#

Returns#

void