MCPcopy Create free account
hub / github.com/angular/components / _setActiveClass

Method _setActiveClass

src/material/tabs/tab-body.ts:269–271  ·  view source on GitHub ↗

Sets the active styling on the tab body based on its current position.

(isActive: boolean)

Source from the content-addressed store, hash-verified

267
268 /** Sets the active styling on the tab body based on its current position. */
269 _setActiveClass(isActive: boolean) {
270 this._elementRef.nativeElement.classList.toggle('mat-mdc-tab-body-active', isActive);
271 }
272
273 /** The text direction of the containing app. */
274 _getLayoutDirection(): Direction {

Callers 2

ngOnInitMethod · 0.95
_bodyCenteredMethod · 0.80

Calls 1

toggleMethod · 0.65

Tested by

no test coverage detected