UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

20 lines (19 loc) 607 B
import { EventDataNode, Key } from 'rc-tree/lib/interface'; import { SchedioTreeNode } from './dtos'; export declare const onDragEnter: (info: { event: React.MouseEvent; node: EventDataNode; expandedKeys: Key[]; }) => void; export declare const onDrop: (info: { event: React.MouseEvent; node: any; dragNode: any; dragNodesKeys: Key[]; dropPosition: number; dropToGap: boolean; }, treeData: SchedioTreeNode[], moveNodeTo?: (nodeKey: string, index: number, parentKey: string) => void) => { index: number; nodeId: string; parentId: string; };