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

Tree Component Support TreeNode Label Click Action #18908

Closed
1 task
IsmetAkyurek opened this issue Sep 19, 2019 · 2 comments
Closed
1 task

Tree Component Support TreeNode Label Click Action #18908

IsmetAkyurek opened this issue Sep 19, 2019 · 2 comments
Assignees

Comments

@IsmetAkyurek
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Currently, TreeNode labels doesn't support collapsing it's tree by clicking. I believe it would be better if we could define it's behavior whether it would check, select or collapse the node.

What does the proposed API look like?

<Tree onLabelClick="collapse" />

@afc163
Copy link
Member

afc163 commented Sep 19, 2019

Try <Tree title={<div onClick={xxx}>title</div>} />

@afc163 afc163 closed this as completed Sep 19, 2019
@tewarig
Copy link

tewarig commented Nov 1, 2023

hi @afc163 can you tell me some work around in ?

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

No branches or pull requests

3 participants