minop1205 / react-dnd-treeview

A draggable / droppable React-based treeview component. You can use render props to create each node freely.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node.droppable children check

gunheesssss opened this issue · comments

node.droppable Is it possible to determine whether a parent has children or not?

2023-10-12.10.15.35.mov

I want to remove the arrow if there are no children.
And is it possible to set a maximum depth? 🥺🥺

@gunheesssss

See hasChild to see if a node has children.

https://github.com/minop1205/react-dnd-treeview#render-prop

2023-10-12_10h27_02

For the maximum depth, please refer to a similar Issue in the past.

#127

@minop1205
Wow thank you for the really quick reply 🙏🙇🏻‍♂️
I should have looked better, I'm really sorry. 😭

Lastly, is there a search function?

@gunheesssss

Search API has been raised as another issue, but not yet addressed.
#198