vuestic-ui
Version:
Vue 3 UI Framework
11 lines (10 loc) • 551 B
TypeScript
import { ExtractPropTypes } from 'vue';
import type { TreeNode, TreeView, TreeViewEmitsFunc } from '../types';
import { useTreeViewProps } from './useTreeHelpers';
type UseTreeKeyboardNavigationMethods = Pick<TreeView, 'toggleNode' | 'toggleCheckbox'> & {
emit: TreeViewEmitsFunc;
};
declare const useTreeKeyboardNavigation: (props: ExtractPropTypes<typeof useTreeViewProps>, methods: UseTreeKeyboardNavigationMethods) => {
handleKeyboardNavigation: (event: KeyboardEvent, node: TreeNode) => void;
};
export default useTreeKeyboardNavigation;