pass callback handler for action item like onselectitem, ondrop #116
Answered
by
iamravisingh
iamravisingh
asked this question in
Q&A
-
How can we pass handler props as a callback to a Tree? I don't want to use context.onSelectItems , if I have made generic handler props and want to pass that to onSelectItem, how can I do that? |
Beta Was this translation helpful? Give feedback.
Answered by
iamravisingh
Jul 31, 2022
Replies: 1 comment
-
I was referring to UncontrolledTreeEnvironment types, missed that default its using controlledTreeEnv we can pass all the handlers to the UncontrolledTreeEnvironment component. it will be helpful if this is been added to the docs
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lukasbach
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was referring to UncontrolledTreeEnvironment types, missed that default its using controlledTreeEnv we can pass all the handlers to the UncontrolledTreeEnvironment component. it will be helpful if this is been added to the docs