Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node.droppable children check #210

Closed
gunheesssss opened this issue Oct 12, 2023 · 3 comments
Closed

node.droppable children check #210

gunheesssss opened this issue Oct 12, 2023 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@gunheesssss
Copy link

gunheesssss commented Oct 12, 2023

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 gunheesssss added the enhancement New feature or request label Oct 12, 2023
@minop1205
Copy link
Owner

@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

@gunheesssss
Copy link
Author

gunheesssss commented Oct 12, 2023

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

Lastly, is there a search function?

@minop1205
Copy link
Owner

@gunheesssss

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

@minop1205 minop1205 added help wanted Extra attention is needed and removed enhancement New feature or request labels Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants