Skip to main content
cngx-src documentation

CngxStepperCommitHandler

Interface

projects/common/stepper/commit-handler.ts

Import#

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

Description#

Adapter between the lifted commit-controller and the stepper's action shape. The presenter delegates to beginTransition on every step change driven by commitAction.

Index#

Instance Properties#

isCommitting#Signal
Readonly

Live pending flag from the controller.

Methods#

beginTransition#void
beginTransition(fromIndex: number, toIndex: number, action: CngxStepperCommitAction, onResolve: function)

Start a transition commit. Returns synchronously; the controller's state signal reports the in-flight status.

             skipped on supersede.
@paramfromIndexnumber
@paramtoIndexnumber
@paramonResolvefunction

fires true on accept, false on rejection; skipped on supersede.

cancel#void

Cancel the in-flight transition without firing callbacks.