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

Multiple roots support #281

Closed
Maximaximum opened this issue May 23, 2023 · 2 comments
Closed

Multiple roots support #281

Maximaximum opened this issue May 23, 2023 · 2 comments
Labels
question Further information is requested

Comments

@Maximaximum
Copy link

Is your feature request related to a problem? Please describe.
I'm trying to render a tree with multiple roots (ie, render multiple trees in a single component), but I get a 'multiple roots' error.

Describe the solution you'd like
It would be great if we could render multiple roots on the same component, so that all the root nodes are located at the same top level of the hierarchy.


@bumbeishvili
Copy link
Owner

Org chart cannot have multiple roots (a.k.a. two parents for a single node)

If you just want multiple nodes displayed at the top, create a dummy node data which will be the parent of these nodes, and then hide this node and link with CSS or inside in nodeUpdate & linkUpdate methods

@bumbeishvili bumbeishvili added the question Further information is requested label Sep 14, 2023
@bumbeishvili
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants