UNPKG

@clr/angular

Version:

Angular components for Clarity

28 lines (27 loc) 908 B
import { NgZone, OnDestroy } from '@angular/core'; import * as i0 from "@angular/core"; export declare function getTabableItems(el: HTMLElement): HTMLElement[]; export interface KeyNavigationGridConfig { keyGrid: string; keyGridRows: string; keyGridCells: string; } export declare class KeyNavigationGridController implements OnDestroy { private zone; private host; private config; private listenersAdded; private destroy$; constructor(zone: NgZone); private get grid(); private get rows(); private get cells(); ngOnDestroy(): void; addListeners(): void; initializeKeyGrid(host: HTMLElement): void; resetKeyGrid(): void; private setActiveCell; private getNextItemCoordinate; static ɵfac: i0.ɵɵFactoryDeclaration<KeyNavigationGridController, never>; static ɵprov: i0.ɵɵInjectableDeclaration<KeyNavigationGridController>; }