Skip to main content
cngx-src documentation

CngxCommitController

Interface

projects/forms/select/shared/commit-controller.token.ts

Import#

import { CngxCommitController } from '@cngx/forms/select'

Description#

Select-side commit-controller surface. Same signal/state graph as the lifted CngxGenericCommitController; begin() accepts a CngxSelectCommitAction directly. The action-shape adapter keeps every existing select call-site working while @cngx/common/data owns the generic state machine.

Metadata#

Index#

Methods

Methods#

begin#void
begin(action: CngxSelectCommitAction<T>, intended: T | undefined, previous: T | undefined, handlers: CngxCommitBeginHandlers<T>)

Start a new commit. Supersedes any in-flight commit: prior callbacks become no-ops, prior Observable subscriptions are torn down.

            state and calls these; never touches `value`, panel
            open state, or outputs.

async write handler (Observable/Promise/sync)

@paramintendedT | undefined

value the user clicked

@parampreviousT | undefined

rollback target on error

success/error routes. Controller updates its own state and calls these; never touches value, panel open state, or outputs.