File

projects/ui-kit-lib/src/lib/v2/tabs/tab.ts

Metadata

Index

Properties
Inputs
Accessors

Constructor

constructor()

Inputs

aria-label
Type : string

Accessible label for the tab header element.

aria-labelledby
Type : string

Id of element that labels the tab header (for a11y).

bodyClass
Type : string | string[]

Additional CSS class(es) applied to the body/content host.

disabled
Type : boolean
Default value : false

Disables this tab. Header becomes non-interactive and body is not focusable.

id
Type : string | null
Default value : null

Optional id for this tab; can be used for linking and testing.

label
Type : string
Default value : ''

Plain text label for the tab header (alternative to template label).

labelClass
Type : string | string[]

Additional CSS class(es) applied to the label host.

Properties

_closestTabGroup
Type : unknown
Default value : inject(TAB_GROUP, { optional: true })

Optional reference to the closest parent tab group (for coordination).

_implicitContent
Type : TemplateRef<any>
Decorators :
@ViewChild(TemplateRef, {static: true})

Implicit content template captured from the component template.

Readonly _stateChanges
Type : unknown
Default value : new Subject<void>()

Notifies parent/consumers that an input affecting rendering has changed.

isActive
Type : unknown
Default value : false

Whether this tab is currently the active/selected one.

origin
Type : number | null
Default value : null

Index from which this tab originated during a transition.

position
Type : number | null
Default value : null

Position relative to the active tab (used for ink bar/animations).

Accessors

templateLabel
gettemplateLabel()

Custom label template projected via <ng-template md-tab-label>. Setter ensures the template belongs to this tab instance.

Returns : MDTabLabel
settemplateLabel(value: MDTabLabel)
Parameters :
Name Type Optional
value MDTabLabel No
Returns : void
content
getcontent()

Public getter for the content portal (used by parent tab group).

Returns : TemplatePortal | null

results matching ""

    No results matching ""