CngxMatTabRejectionDecorationOptions
projects/ui/mat-tabs/decorations/decoration-projectors.ts
Import#
import { CngxMatTabRejectionDecorationOptions } from '@cngx/ui/mat-tabs'
Description#
Options for createMatTabRejectionDecoration.
Index#
Instance Properties#
SignalOptional *cngxMatTabRejectionContent slot template. When
non-null AND viewContainerRef is supplied, the projector
renders an embedded view into the SR span; otherwise it falls
back to the imperative textContent path.
Suffix appended to failedHandleId for the descriptor span's
DOM id. Default 'rejected' — distinct from the aggregator
projector's 'errors' so both can stack on the same target.
SignalReactive descriptor phrase for the SR-only span. Typical
resolution at the caller: i18n commitRolledBackTo(originLabel)
when origin resolves, commitFailedRetry otherwise. A separate
effect tracks this signal so late label resolution mutates the
span in place rather than rebuilding it. Empty string keeps the
span mounted — aria-describedby must never dangle.
DestroyRefSignalStable id of the currently-failed target, or null when no
rejection is pinned. Sole effect-trigger; the descriptor span's
DOM id is ${failedHandleId}-rejected.
SignalIndex of the currently-failed target — undefined when no
rejection is pinned. Read inside untracked() after
failedHandleId fires.
SignalReactive origin label feeding the slot context's originLabel.
Read inside untracked() during apply; the descriptorText
re-fire effect destroys + remounts the embedded view, so the
value is always read at fire time.
ViewContainerRefRequired half of the slot path. Without it, the projector silently degrades to the imperative descriptor path. Mirrors the aggregator projector's same-name opt.