Skip to main content
cngx-src documentation

createPanelLifecycleEmitter

Functionforms/select/panel

projects/forms/select/shared/panel-lifecycle-emitter.ts

Description#

One effect() that emits openedChange/opened/closed on panelOpen flips and restores focus to the trigger after close. Output emits + focus call wrapped in untracked. Injection context required.

Signature#

createPanelLifecycleEmitter(opts: PanelLifecycleEmitterOptions)

Parameters#

Returns#

void