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

Context Menu For Each Folder And Item #349

Open
hussain7006 opened this issue Mar 14, 2024 · 3 comments
Open

Context Menu For Each Folder And Item #349

hussain7006 opened this issue Mar 14, 2024 · 3 comments
Assignees

Comments

@hussain7006
Copy link

Can you please add the OnContextMenu feature in the tree for each folder and item

@lukasbach
Copy link
Owner

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.

https://rct.lukasbach.com/docs/guides/rendering

@hussain7006
Copy link
Author

hussain7006 commented Mar 14, 2024 via email

@lukasbach
Copy link
Owner

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

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

2 participants