* Sets an option as active. * @param index Index of the active option. If set to -1, no option will be active.
(index: number)
| 455 | * @param index Index of the active option. If set to -1, no option will be active. |
| 456 | */ |
| 457 | private _setActiveOption(index: number) { |
| 458 | this._items.forEach((item, itemIndex) => item._setTabindex(itemIndex === index ? 0 : -1)); |
| 459 | this._keyManager.updateActiveItem(index); |
| 460 | } |
| 461 | |
| 462 | /** |
| 463 | * Resets the active option. When the list is disabled, remove all options from to the tab order. |
no test coverage detected