This commit is contained in:
Chris Chen
2026-05-25 17:32:18 -07:00
parent 9b28fbcfb6
commit d5648315a0
262 changed files with 32074 additions and 0 deletions
@@ -0,0 +1,24 @@
import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { DropDownOption } from '../../entity/dropDownOption';
import { DropDownBag } from './drop-down-menu/drop-down-menu.component';
@Injectable({
providedIn: 'root'
})
export class DropDownListService {
constructor() { }
onItemSelect = new Subject<DropDownBag>();
focusIndexChange = new Subject<DropDownBag>();
selectItem(tag: string, item: DropDownOption) {
this.onItemSelect.next({ tag: tag, item: item } as DropDownBag)
}
setFocusIndex(tag: string, i: number) {
this.focusIndexChange.next(
{ tag: tag, focusIndex: i } as DropDownBag);
}
}