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

Function _isValidIndex

src/material/tabs/paginated-tab-header.ts:412–414  ·  view source on GitHub ↗

* Determines if an index is valid. If the tabs are not ready yet, we assume that the user is * providing a valid index and return true.

(index: number)

Source from the content-addressed store, hash-verified

410 * providing a valid index and return true.
411 */
412 _isValidIndex(index: number): boolean {
413 return this._items ? !!this._items.toArray()[index] : true;
414 }
415
416 /**
417 * Sets focus on the HTML element for the label wrapper and scrolls it into the view if

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected