Skip to main content
cngx-src documentation

CngxBreadcrumbHost

Interface

projects/common/interactive/breadcrumb/breadcrumb.token.ts

Referenced by#

Import#

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

Description#

Contract a CngxBreadcrumb provides to its items and to a drop-in overflow via DI. Item-keyed queries stay methods; the collapse set is exposed as signals so a decoupled overflow can derive off them without injecting the concrete coordinator class.

Index#

Instance Properties#

collapsedItems#Signal
Readonly

The crumbs currently collapsed into the overflow, in DOM order.

hasCollapsed#Signal
Readonly

Whether any crumb is collapsed (drives the overflow trigger's visibility).

Methods#

isCollapsed#boolean
isCollapsed(item: CngxBreadcrumbItem)

Whether this item is collapsed into the overflow menu (hidden in the trail).

isTerminal#boolean
isTerminal(item: CngxBreadcrumbItem)

Whether this item is the terminal crumb (gets aria-current="page").