Skip to content

Only show checkbox on leaves? #80

New issue

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

By clicking “No 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? No Sign in to your account

Closed
airowe opened this issue Mar 27, 2018 · 5 comments
Closed

Only show checkbox on leaves? #80

airowe opened this issue Mar 27, 2018 · 5 comments
Milestone

Comments

@airowe
Copy link

airowe commented Mar 27, 2018

My tree design requires to only show checkboxes on leaves. Is there a parameter we can pass to make this happen or should I submit a pr?

@jakezatecky
Copy link
Owner

There is not, but I would be open to a pull request adding this.

@airowe
Copy link
Author

airowe commented Mar 28, 2018

@jakezatecky Would making a node disabled remove the checkbox? Do you have bandwidth to knock out a feature request or would you need me to do a PR?

@jakezatecky
Copy link
Owner

jakezatecky commented Mar 29, 2018

It does not. I might get to it this weekend, but I make no guarantees.

I think both a node-level showCheckbox boolean as well as a onlyLeafCheckboxes property for the main component would be desirable.

@airowe
Copy link
Author

airowe commented Mar 30, 2018 via email

@jakezatecky jakezatecky added this to the v1.1.0 milestone Mar 31, 2018
@airowe
Copy link
Author

airowe commented Apr 2, 2018

This works great, thanks @jakezatecky!

No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants