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

How to add more details in the nodes of an organization chart? #919

Open
danieldan979 opened this issue Nov 25, 2021 · 2 comments
Open

How to add more details in the nodes of an organization chart? #919

danieldan979 opened this issue Nov 25, 2021 · 2 comments

Comments

@danieldan979
Copy link

danieldan979 commented Nov 25, 2021

I need to implement a company diagram with drag and drop functionality. I found the react-sortable-tree library and tried using it for my purpose. This is what I have done so far:

image

Now I stopped and this is my question: is it possible to add more details within each node (e.g. email, mobile number ...)? The node should look like this:

image

Thanks in advance!

@alexuong
Copy link

alexuong commented Feb 1, 2022

Were you able to figure out if this is possible?

@KunwarVSuryavanshi
Copy link

KunwarVSuryavanshi commented Mar 4, 2022

This can be achieved if we pass our own component or html code to title of generateNodeProps.
Although if you are going to increase the height of input box, you might ran into problem of the side lines connecting them not aligned properly.

Which also can be corrected (hopefully) by overwriting styling of .rst__lineBlock, .rst__absoluteLineBlock.

Or simply increasing rst_node will also do the work

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

3 participants