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

CheckBox #25

Open
panliang-rm opened this issue Jul 8, 2024 · 3 comments
Open

CheckBox #25

panliang-rm opened this issue Jul 8, 2024 · 3 comments
Labels
question Further information is requested

Comments

@panliang-rm
Copy link

Whether i can check the parent node, all its child nodes will be checked.
treeView

@AmrDeveloper
Copy link
Owner

Hello @panliang-rm,

Sorry for delay, do you still have a code snippets on how to reproduce it

@panliang-rm
Copy link
Author

Hello, this is an example I found online. I want to ask if TreeView can provide checkbox functionality. Currently, my implementation is quite complex and not elegant - I need to manually traverse the data source and use EventBus to notify updates.

@AmrDeveloper
Copy link
Owner

@panliang-rm Yes, TreeView allow you to define your custom view with custom logic too, I created a small example with CheckBox component

https://github.com/AmrDeveloper/TreeView/tree/master/app/src/main/java/com/amrdeveloper/treeviewlib/todotree

Screen.Recording.2024-12-26.at.13.59.45.mov

You can also decide if you want to check the parent if all children are checked or not

@AmrDeveloper AmrDeveloper added the question Further information is requested label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants