Skip to main content
cngx-src documentation

createMenuDismissHandler

Functioncommon/interactive/menuv0.1.0

projects/common/interactive/menu/dismiss-handler.ts

Description#

Default factory. Pure closure over opts - no Angular DI. Mirrors the shape of @cngx/forms/select's createDismissHandler so future cross-family consolidation has a clean target.

Override via CNGX_MENU_DISMISS_HANDLER_FACTORY for telemetry-wrapped or test-doubled dismissal.

Signature#

createMenuDismissHandler(opts: CngxMenuDismissHandlerOptions)

Parameters#

Returns#

CngxMenuDismissHandler