CngxStepperGroupNavigationView
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
Methods#
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.
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.