Skip to content

frontend-web-editor


Function: UseNodeClick()

UseNodeClick(id, data): () => void

Defined in: app/hooks/eventSequence/useNodeClick.ts:27

Hook for handling click events on nodes in a React Flow diagram.

This hook provides a function, onClick, that can be used as an event handler for node click events. It retrieves information about the clicked node using the useReactFlow hook.

Parameters

id

string

The unique identifier of the clicked node.

data

EventSequenceNodeProps

data and attributes of the node.

Returns

A function (onClick) to be used as an event handler for node click events.

(): void

Returns

void