Skip to main content
cngx-src documentation

CngxMatTabRejectionDecorationOptions

Interface

projects/ui/mat-tabs/decorations/decoration-projectors.ts

Import#

import { CngxMatTabRejectionDecorationOptions } from '@cngx/ui/mat-tabs'

Description#

Index#

Instance Properties#

buttonSelector#string
ReadonlyOptional

Default: .mat-mdc-tab. Override only for testing.

className#string
ReadonlyOptional

Default: cngx-mat-tab--error.

contentTemplate#Signal
ReadonlyOptional

Optional *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.

descriptorIdSuffix#string
ReadonlyOptional

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.

descriptorText#Signal
Readonly

Reactive 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.

destroyRef#DestroyRef
Readonly
failedHandleId#Signal
Readonly

Stable 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.

failedIndex#Signal
Readonly

Index of the currently-failed target — undefined when no rejection is pinned. Read inside untracked() after failedHandleId fires.

hostEl#HTMLElement
Readonly

Host element whose subtree contains the .mat-mdc-tab buttons.

injector#Injector
Readonly
originLabel#Signal
ReadonlyOptional

Reactive 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.

renderer#Renderer2
Readonly
srOnlyClassName#string
ReadonlyOptional

Default: cngx-sr-only.

viewContainerRef#ViewContainerRef
ReadonlyOptional

Required half of the slot path. Without it, the projector silently degrades to the imperative descriptor path. Mirrors the aggregator projector's same-name opt.