frontend-collective / frontend-collective/react-sortable-tree
onDoubleClick on a Node Props
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 914
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to add a onDoubleClick event on the whole node? I already have two buttons for the node, but I want to be able to double click on the node and perform the samen action as in the edit button (openDialog function).
At this moment my Node Props look like this:
```
const getNodeProps = ({ node: { name, minute }, path }) => ({
title: name,
className: classes.agendaPointItem,
buttons: [
minute ? ( // Only show this button when editing a Meeting.
openDialog(name, minute, path)}>
) : null,
checkForContent(name, minute, path)(event)}
>
,
],
});
```
Thanks in advance, any tips are welcome.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.