Open
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:
<SortableTree isVirtualized={false} canDrag={this.state.treeOptions.canDrag} treeData={this.state.treeData} onChange={treeData => this.setState({ treeData })} generateNodeProps={({ node, path }) => ({ title: ( <div className="label-area"> <a href="#">{node.title}</a> </div> ), })} />