Tree: expand/collapse on entire node click, not only caret #5885
Answered
by
adidahiya
warpdesign
asked this question in
Q&A
-
Feature requestRight now, you have to click on the caret to collapse/expand a tree node: I wish there was a prop that would make clicking anywhere in the tree node collapse/expand the node's children. |
Beta Was this translation helpful? Give feedback.
Answered by
adidahiya
May 16, 2019
Replies: 1 comment
-
How are you constructing your Tree? Can you share some code? You get the callbacks to decide when nodes are expanded and selected. In the docs example, we choose to use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adidahiya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How are you constructing your Tree? Can you share some code? You get the callbacks to decide when nodes are expanded and selected. In the docs example, we choose to use
onNodeClick
to select nodes, but you should be able to configure it to expand/collapse nodes instead.