mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 09:30:06 +00:00
Refactor TreeExplorer (Add handleClick hook) (#867)
* Refactor TreeExplorer (Add handleClick hook) * nit
This commit is contained in:
@@ -24,6 +24,8 @@ export interface TreeExplorerNode<T = any> {
|
||||
node: TreeExplorerNode<T>,
|
||||
data: TreeExplorerDragAndDropData
|
||||
) => void
|
||||
// Function to handle clicking a node
|
||||
handleClick?: (node: TreeExplorerNode<T>, event: MouseEvent) => void
|
||||
// Function to handle errors
|
||||
handleError?: (error: Error) => void
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user