Skip to main content
cngx-src documentation

ActionHostBridge

Interface

projects/forms/select/shared/action-host-bridge.ts

Import#

import { ActionHostBridge } from '@cngx/forms/select'

Description#

Bridge surface plugged into the variant's view-host contract: dirty + callbacks feed the panel shell, shouldTrapFocus drives the shell's actionFocusTrapEnabled, shouldBlockDismiss gates the variant's click-outside and Escape handlers.

Index#

Instance Properties#

callbacks#Signal
Readonly

Stable callback bundle for the slot template - structural equal pinned to isPending only, prevents ngTemplateOutlet context churn.

dirty#Signal
Readonly

Dirty flag flipped by the slot's setDirty callback.

shouldBlockDismiss#Signal
Readonly

Gates click-outside and Escape no-op behaviour. Aliased to dirty today, named separately so the semantic can widen later without touching call sites.

shouldTrapFocus#Signal
Readonly

Resolves the always|never|dirty policy against the live dirty signal.

Methods#

reset#void

Called by the variant on cancel/reset.