highlightItem method private presentation
Last updated: 2026-03-04T23:21:38.428Z
Metrics
LOC: 8
Complexity: 3
Params: 2
Signature
highlightItem(items: HTMLElement[], index: number): : void
Source Code
private highlightItem(items: HTMLElement[], index: number): void {
for (const item of items) item.classList.remove("fa-ss__opt--highlighted");
const target = items[index];
if (target) {
target.classList.add("fa-ss__opt--highlighted");
target.scrollIntoView({ block: "nearest" });
}
}
No outgoing dependencies.
No incoming dependencies.