@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
9 lines (8 loc) • 334 B
TypeScript
/**
* Utility method for moving focus in a list of elements
*
* @param currentIndex currently focused index
* @param elements array of focusable elements
* @param step a step to move focus by, typically -1 or 1
*/
export declare function tuiMoveFocus(currentIndex: number, elements: readonly HTMLElement[], step: number): void;