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

Changes to the HalfCheck operation logic of the tree component #8899

Open
guxin0123 opened this issue Nov 28, 2024 · 0 comments
Open

Changes to the HalfCheck operation logic of the tree component #8899

guxin0123 opened this issue Nov 28, 2024 · 0 comments
Assignees

Comments

@guxin0123
Copy link

What problem does this feature solve?

Some trees need to limit the maximum number of leaf nodes that can be selected.

Then when the parent node of the tree is half selected,

the parent node needs to clear the selected state of itself and its child nodes when clicking the checkbox.

What does the proposed API look like?

<nz-tree  nzCheckable  [nzHalfCheckAll]="true | false" ></nz-tree>

nzHalfCheckAll : true -> click half checkBox to chagee all childern checked = true

nzHalfCheckAll : false -> click half checkBox to chagee all childern checked = false

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

No branches or pull requests

2 participants