Skip to main content
cngx-src documentation

CngxStepperGroupNavigationView

Interface

projects/common/stepper/group-navigation.ts

Import#

import { CngxStepperGroupNavigationView } from '@cngx/common/stepper'

Description#

Collapsed-group pointer-navigation view consumed by <cngx-stepper> under groupCollapse: 'expand-active'. A folded group header becomes a click shortcut into its branch: activating it selects the group's first navigable step, which then becomes the active group and expands as a consequence (no in-place disclosure). Keyboard users reach the same steps via the arrow-key contract, which already steps into a collapsed group, so this is a supplementary pointer affordance.

Index#

Methods#

isActive#boolean
isActive(node: CngxStepNode)

true when the group owns the active step (activeGroupId). Drives the active-branch chip treatment on the header, independent of groupCollapse, so the branch in focus reads distinctly even when every group stays expanded.

@paramnodeCngxStepNode
isNavigable#boolean
isNavigable(node: CngxStepNode)

true when a collapsed group header offers a click shortcut: header navigation is on, the group is folded, and at least one descendant step is navigable right now. The expanded (active) group header is never navigable - its steps are already on screen and clickable.

@paramnodeCngxStepNode
select#void
select(node: CngxStepNode)

Selects the group's first navigable step. No-op for an expanded header, a navigation-off header, or a group with no reachable step.

@paramnodeCngxStepNode