navkit-vue
Version:
Vue navigation and utility composables
11 lines (10 loc) • 612 B
TypeScript
import type { NavigationXType } from "../types/navigation";
export declare function useNavigationX({ columns, initialPosition, disabled, focusableSelector, autofocus, focusClass, cyclic, onEnter, onReturn, onColumnEnd, onColumnStart, onDown, onUp, }: NavigationXType): {
position: import("vue").Ref<number, number>;
currentElement: HTMLElement | null;
setPosition: (pos: number) => number;
toggleDisabled: (value?: boolean) => void;
isValidPosition: (col: number) => boolean;
focusElement: (element: HTMLElement | null) => void;
getCurrentFocusedElement: () => HTMLElement | null;
};