ng-focus-selector
Version:
For device like `candy`, `qwerty`, `tv apps`, `stb` etc where element selection happens with keypad (or) remote, selection of element across the application will become complex.
14 lines (13 loc) • 473 B
TypeScript
import { OnInit, ElementRef } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
export declare class FocusSelectorComponent implements OnInit {
private el;
private router;
private route;
onArrowLeftRight(event: any): void;
onArrowDownUp(event: any): void;
constructor(el: ElementRef, router: Router, route: ActivatedRoute);
ngOnInit(): void;
focusElement(el: any): void;
setActiveIndex(index: any): void;
}