device-navigation
Version:
Navigate HTML elements in two dimensions with non-pointer devices.
19 lines (18 loc) • 691 B
TypeScript
import { type DirectiveResult } from 'element-vir';
import { type NavController } from '../nav-controller/nav-controller.js';
import { NavValue, type NavParams } from './nav-entry.js';
/**
* Used to determine an element's initial {@link navAttribute} value.
*
* @category Internal
*/
export declare function determineNavValue(params: Readonly<NavParams>): NavValue | '';
/**
* Mark an element for navigation.
*
* This automatically applies the `tabindex` attribute and all keyboard and mouse listeners needed
* to enable `NavController` functionality.
*
* @category Main
*/
export declare function nav(navController: NavController, params?: Readonly<NavParams>): DirectiveResult;