Skip to main content
cngx-src documentation

CngxTabsCommitHandler

Interface

projects/common/tabs/commit-handler.ts

Import#

import { CngxTabsCommitHandler } from '@cngx/common/tabs'

Description#

Adapts the shared commit-controller to the tabs action shape.
The presenter delegates to beginTransition when commitAction is bound.

Index#

Instance Properties#

isCommitting#Signal
Readonly

Live pending flag from the controller.

Methods#

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

Start a tab-transition commit.
Returns synchronously - read the controller's state signal for in-flight status. onResolve fires once with accept = true on success or false on rejection; skipped on supersede.

@paramfromIndexnumber
@paramtoIndexnumber
@paramonResolvefunction
cancel#void

Cancel the in-flight transition without firing callbacks.