Skip to main content
cngx-src documentation

withDismissOnOutsideClick

Functioncommon/interactive/menu

projects/common/interactive/menu/menu-config-features.ts

Description#

Whether pointerdown outside the menu's popover and the trigger host dismisses the menu. Default: true. Pass false for ESC-only semantics (e.g. a tutorial overlay that wants to keep the menu open while the user clicks through other UI).

Signature#

withDismissOnOutsideClick(dismiss: boolean)

Parameters#

@paramdismissboolean

Returns#

CngxMenuConfigFeature