Skip to main content
cngx-src documentation

CngxAccordionKeyboardNavHost

Interface

projects/common/interactive/accordion/accordion-keyboard-nav.ts

Import#

import { CngxAccordionKeyboardNavHost } from '@cngx/common/interactive'

Description#

Coordinator surface createAccordionKeyboardNav reads. The CngxAccordion directive implements it; the factory stays a pure create* (no inject()) so it works in any injection context and is trivially unit-testable.

Index#

Instance Properties#

headers#Signal
Readonly

Every registered header, in registration order (the factory re-sorts by DOM position).

rovingActiveId#Signal
Readonly

Id of the header that is currently the group's single tab stop, or null.

Methods#

setRovingActive#void
setRovingActive(id: string)

Record the header the roving stop should move to.

@paramidstring