Select-side commit-controller surface
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(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)
@paramintended
T | undefinedvalue the user clicked
@paramprevious
T | undefinedrollback target on error
success/error routes. Controller updates its own
state and calls these; never touches value, panel
open state, or outputs.