Skip to main content
cngx-src documentation

createStepperDisplayMode

Functioncommon/stepper

projects/common/stepper/mobile-viewport.ts

Description#

Resolves the active stepper display mode by combining a viewport media-query with the configured mobileCollapse policy. 'classic' keeps the full strip; 'text' / 'dots' swap to the matching compact variant.

Signature#

createStepperDisplayMode(mediaQuery: string, mobileCollapse, destroyRef: DestroyRef)

Parameters#

@parammediaQuerystring
@parammobileCollapse
@paramdestroyRefDestroyRef

Returns#

Signal<"classic" | "text" | "dots">