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

Method _isCenterPosition

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

Whether the provided position state is considered center, regardless of origin.

()

Source from the content-addressed store, hash-verified

277
278 /** Whether the provided position state is considered center, regardless of origin. */
279 _isCenterPosition(): boolean {
280 return this._positionIndex === 0;
281 }
282
283 /** Computes the position state that will be used for the tab-body animation trigger. */
284 private _computePositionAnimationState(dir: Direction = this._getLayoutDirection()) {

Callers 1

ngOnInitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected