mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 16:10:09 +00:00
Generate drag preview for node library nodes (#2387)
This commit is contained in:
@@ -25,6 +25,11 @@ export interface TreeExplorerNode<T = any> {
|
||||
) => void | Promise<void>
|
||||
/** Whether the node is draggable */
|
||||
draggable?: boolean
|
||||
/** Function to render a drag preview */
|
||||
renderDragPreview?: (
|
||||
node: TreeExplorerNode<T>,
|
||||
container: HTMLElement
|
||||
) => void | (() => void)
|
||||
/** Whether the node is droppable */
|
||||
droppable?: boolean
|
||||
/** Function to handle dropping a node */
|
||||
|
||||
Reference in New Issue
Block a user