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

Method _createChangeEvent

src/material/tabs/tab-group.ts:479–486  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

477 }
478
479 private _createChangeEvent(index: number): MatTabChangeEvent {
480 const event = new MatTabChangeEvent();
481 event.index = index;
482 if (this._tabs && this._tabs.length) {
483 event.tab = this._tabs.toArray()[index];
484 }
485 return event;
486 }
487
488 /**
489 * Subscribes to changes in the tab labels. This is needed, because the @Input for the label is

Callers 3

ngAfterContentCheckedMethod · 0.95
ngAfterContentInitMethod · 0.95
_focusChangedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected