Skip to main content
cngx-src documentation

CngxMatTabAggregatorDecorationOptions

Interface

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

Import#

import { CngxMatTabAggregatorDecorationOptions } 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--has-errors.

contentTemplate#Signal
ReadonlyOptional

Optional *cngxMatTabAggregatorContent template. When non-null AND viewContainerRef is supplied, the projector renders an embedded view per entry; otherwise it falls back to the imperative textContent path.

destroyRef#DestroyRef
Readonly
errorTabs#Signal
Readonly

Reactive list of tabs whose bound aggregator wants reveal — caller pre-filters; sole effect-trigger.

hostEl#HTMLElement
Readonly
injector#Injector
Readonly
maxRetryAttempts#number
ReadonlyOptional

Default: 5. Cap on afterNextRender retry recursion.

onHalfWiredSlot#function
ReadonlyOptional

Sink fired when exactly one of contentTemplate / viewContainerRef is supplied — the projector is mode-agnostic so the dev-vs-prod gate lives in whichever sink the caller passes. [cngxMatTabs] resolves this from provideMatTabsConfig(withHalfWiredSlotSink(fn)); the default is a dev-mode console.warn.

onMaxRetriesReached#function
ReadonlyOptional

Optional dev-mode sink invoked when the retry ceiling is hit. Defaults to a console.warn gated on ngDevMode.

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.