Skip to main content
cngx-src documentation

CngxTabPanelHost

Interface

projects/common/tabs/tab-panel-host.token.ts

Referenced by#

Import#

import { CngxTabPanelHost } from '@cngx/common/tabs'

Description#

Read-mostly panel-surface contract for the overflow molecule, skin sub-components, and future panel-level helpers.
Narrower than CngxTabGroupHost - register / unregister stay on the brain.

The single write path is selectById; routing back through the presenter preserves clamping, disabled-skip, and commit-action gating. Template resolvers let skin sub-components project the *cngxTabLabel / *cngxTabContent slots without depending on the concrete CngxTabGroup class.

Index#

Instance Properties#

activeId#Signal
Readonly
orientation#Signal<"horizontal" | "vertical">
Readonly
Readonly

Methods#

contentTemplateFor#TemplateRef | null
contentTemplateFor(id: string)

Resolves a tab id to its *cngxTabContent template (consumer-supplied).

@paramidstring
labelTemplateFor#TemplateRef | null
labelTemplateFor(id: string)

Resolves a tab id to its *cngxTabLabel template (consumer-supplied).

@paramidstring
selectById#void
selectById(id: string)
@paramidstring