-
-
Notifications
You must be signed in to change notification settings - Fork 94
pass callback handler for action item like onselectitem, ondrop #116
-
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.
All reactions
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
<UncontrolledTreeEnvironment
onSelectITems={}
onExpandItem={}
/>
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
<UncontrolledTreeEnvironment
onSelectITems={}
onExpandItem={}
/>
Beta Was this translation helpful? Give feedback.