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

Method focusTab

src/material/tabs/tab-group.ts:466–472  ·  view source on GitHub ↗

* Sets focus to a particular tab. * @param index Index of the tab to be focused.

(index: number)

Source from the content-addressed store, hash-verified

464 * @param index Index of the tab to be focused.
465 */
466 focusTab(index: number) {
467 const header = this._tabHeader;
468
469 if (header) {
470 header.focusIndex = index;
471 }
472 }
473
474 _focusChanged(index: number) {
475 this._lastFocusedTabIndex = index;

Callers 1

tab-group.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected