projects/common/tabs/commit-handler.ts
import { CngxTabsCommitHandler } from '@cngx/common/tabs'
Adapts the shared commit-controller to the tabs action shape. The presenter delegates to beginTransition when commitAction is bound.
commitAction
Signal
Live pending flag from the controller.
pending
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.
state
onResolve
accept = true
false
number
CngxTabsCommitAction
function
Cancel the in-flight transition without firing callbacks.