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

Method _updateItemTabIndices

docs/src/app/shared/carousel/carousel.ts:110–116  ·  view source on GitHub ↗

Updates the `tabindex` of each of the items based on their active state.

()

Source from the content-addressed store, hash-verified

108
109 /** Updates the `tabindex` of each of the items based on their active state. */
110 private _updateItemTabIndices() {
111 this.items().forEach((item: CarouselItem) => {
112 if (this._keyManager != null) {
113 item.tabindex = item === this._keyManager.activeItem ? '0' : '-1';
114 }
115 });
116 }
117
118 /** Scrolls an item into the viewport. */
119 private _scrollToActiveItem() {

Callers 1

onKeydownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected