How do I enable swimlanes copy and paste

How do I enable swimlanes copy and paste ? I can not copy and paste Swimlanes.

Have you tried setting Group.copyable to true, or just removing the line that sets copyable: false?

But if you turn it on, you’ll need to decide whether to allow control-drag-and-drop kinds of copies.

If you do, you’ll need to decide whether to allow dropping into the background – i.e. as top-level groups, i.e. as “lanes” that are not in “pools”. Implement a Diagram.mouseDrop event handler to either cancel the tool (thereby preventing the addition of a top-level Group) or to add it as a top-level Group by calling CommandHandler.addTopLevelParts.

And if you want to allow adding lanes to other pools, you’ll need to implement that in a Group.mouseDrop event handler to add it as a member to that Group.

Hmmm, in looking at that code, I wonder if it shouldn’t also be setting Group.deletable to false.

1 Like

Group.copyable true working for me. thank you