frontend-collective / frontend-collective/react-sortable-tree
Click title node to collapse/expand node
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 914
- PR merge metrics
- No merged PRs in 30d
Description
I have a issue about node of react-sortable-tree.
I need a function (or same way) so that user can click title to collapse/expand node instead of click toggle on Tree-view
Could you help to give me some advice to fix this?
Thank you so much.
Here is my code:
` this.setState({ treeData })}
generateNodeProps={({ node, path }) => ({
title: (
),
})}
/>`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the SortableTree component and its generateNodeProps title example; compare title click handling with the existing Tree-view toggle. Confirm the work is done when clicking the node title collapses or expands that node while preserving the existing tree behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100