UNPKG

@fabiomdf/vue-hierarchy-tree

Version:

A Vue 3 component for creating interactive hierarchy trees with drag-and-drop functionality

10 lines (9 loc) 402 B
import { Ref } from 'vue'; export declare function useLabelEdit(initialLabel: string | Ref<string>, onSave: (newLabel: string) => void): { isEditing: Ref<boolean, boolean>; tempLabel: Ref<string, string>; inputRef: Ref<HTMLInputElement | null, HTMLInputElement | null>; startEditing: () => Promise<void>; saveLabel: () => void; handleKeydown: (event: KeyboardEvent) => void; };