projects/ui-kit-lib/src/lib/v2/tabs/tab.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| encapsulation | ViewEncapsulation.None |
| exportAs | mdTab |
| providers |
MDTab
|
| selector | md-tab |
| standalone | true |
| templateUrl | ./tab.html |
Properties |
Inputs |
Accessors |
constructor()
|
| 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. |
| _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). |
| templateLabel | ||||||
gettemplateLabel()
|
||||||
|
Custom label template projected via
Returns :
MDTabLabel
|
||||||
settemplateLabel(value: MDTabLabel)
|
||||||
|
Parameters :
Returns :
void
|
| content |
getcontent()
|
|
Public getter for the content portal (used by parent tab group).
Returns :
TemplatePortal | null
|