- Home
- Forum
- Angular - EJ 2
- swimlane header issue
swimlane header issue
Hi guys, I have trying to change swimlane header size but I encounter this shape, and i should mention i have changed the size in the palette and [dargEnter]=onDrop() function.
Thanks
Behnam
Use the CollectionChange event for dynamically modifying the header and phase height in the swimlane. To avoid repetitive triggering of the collection change event, verify the type as "Addition" prior to adjusting the height. Please refer to the code example and sample below.
Code Snippet
|
public collectionChange(arg : ICollectionChangeEventArgs): void{ if(arg.type === "Addition"){ if (arg.element.shape.type === 'SwimLane') { (arg.element.shape as any).header.height = 10; (arg.element.shape as any).phaseSize = 0; this.diagram.dataBind(); } } } |
Sample
|
https://stackblitz.com/edit/angular-w3uerm?file=src%2Fapp.component.ts,src%2Fapp.component.html |
Hi Behnam Norouzi,
You're welcome. We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help.
Regards,
Preethi R
- 3 Replies
- 3 Participants
-
BN Behnam Norouzi
- Jul 3, 2023 03:15 PM UTC
- Jul 6, 2023 07:43 AM UTC