sequential-workflow-designer icon indicating copy to clipboard operation
sequential-workflow-designer copied to clipboard

How can I collapse/expand large sub-trees?

Open hchaudhary1 opened this issue 9 months ago • 3 comments

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?

hchaudhary1 avatar May 02 '24 17:05 hchaudhary1

Hello @hchaudhary1,

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

b4rtaz avatar May 02 '24 19:05 b4rtaz

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?

hchaudhary1 avatar May 03 '24 08:05 hchaudhary1

@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 avatar May 03 '24 10:05 b4rtaz

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

b4rtaz avatar May 16 '24 21:05 b4rtaz