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 can I collapse/expand large sub-trees? #140

Closed
hchaudhary1 opened this issue May 2, 2024 · 4 comments
Closed

How can I collapse/expand large sub-trees? #140

hchaudhary1 opened this issue May 2, 2024 · 4 comments

Comments

@hchaudhary1
Copy link

I have large graphs. And I want the users to be able to expand/collapse the sub-graphs so they can remove the extra stuff in their way.
This is advanced example:
https://reactflow.dev/examples/layout/expand-collapse
But even something simpler/minimal feature such as this above.

I know this is not available in the API/SDK... so can you provide some guidance, on which part of the code can I modify to accomplish this behavior?

@b4rtaz
Copy link
Collaborator

b4rtaz commented May 2, 2024

Hello @hchaudhary1,

have you seen the folder step component in the pro version? Would this solve your problem?

@hchaudhary1
Copy link
Author

Folder is great to hide things (extra friction to drag and hide... ).. the issue with folder is: how can I quickly un-hide?
Hence, I don't think folder would solve my use-case.

An easy toggle to expand-collapse would be needed... possibly in the context-menu?

@b4rtaz
Copy link
Collaborator

b4rtaz commented May 3, 2024

@hchaudhary1 I see a value in the collapse/expand block for SWD, I could implement it as a new feature for the pro version. You are considering purchasing the pro version?

I think in the current shape it's not possible to achieve this behaviour. It requires some minor changes in the codebase.

@b4rtaz
Copy link
Collaborator

b4rtaz commented May 16, 2024

The 0.21.0 brings the collapsible region feature in the pro version.

@b4rtaz b4rtaz closed this as completed May 16, 2024
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