Context Menu For Each Folder And Item
Opened this issue · 3 comments
Can you please add the OnContextMenu feature in the tree for each folder and item
Can you elaborate on what you suggest as a feature? react-complex-tree already allows customizing the render logic of tree items, you can just register your own context menu handlers there.
As mentioned, you can customize the render logic and add custom logic to your rendered elements like context menus from there. If you want changes to the tree structure to be possible, you need to manage the state of the tree externally, and let RCT know of any changes done through change events. There are multiple ways for how to do this, this page documents how to do this for static tree data providers for example: https://rct.lukasbach.com/docs/guides/static-data-provider