Updates the `tabindex` of each of the items based on their active state.
()
| 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() { |