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

feature request: support adding new tree elements in the UI #133

Open
travis-bear opened this issue Jul 20, 2020 · 1 comment
Open

feature request: support adding new tree elements in the UI #133

travis-bear opened this issue Jul 20, 2020 · 1 comment
Labels
enhancement New feature or request Out of scope

Comments

@travis-bear
Copy link

It would be nice to be able to add child elements -- both new branches, and new leaf nodes.

This could possibly be achieved with a context menu, or by little "+" buttons.

@jledentu
Copy link
Owner

jledentu commented Apr 6, 2021

Hi, the itemComponent prop allows to pass a custom component for items. Your custom component could handle this context menu or + button that would trigger the creation of a new child item. Then just pass a new tree value.

Since it's not so difficult to add this feature on your side, and since I couldn't provide a UI that would satisfy all users, I consider it's out-of-scope.

I'm still open to a PR that would suggest a generic solution. :)

@jledentu jledentu closed this as completed Apr 6, 2021
@jledentu jledentu reopened this Apr 6, 2021
@jledentu jledentu added enhancement New feature or request Out of scope labels Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Out of scope
Projects
None yet
Development

No branches or pull requests

2 participants