- Home
- Forum
- Angular - EJ 2
- Adding Swimlanes to Palette
Adding Swimlanes to Palette
Trying to add Swimlanes to a palette using angular with EJ2. Not having any success. Below is my latest attempt. This is a bit of guess as I haven't been able to find any examples of this in Angular. Not sure
- which properties
- how to set these properties
const swimLaneShapes: NodeModel[] = [
{
id: 'Horivontal SwimLane', shape: { type: 'SwimLane', shape: 'stackCanvas1' }
},
{
id: 'Vertical SwimLane', shape: {type: 'SwimLane', shape: 'stackCanvas2' }
}
]
}
Thanks,
Gordon Brown
SIGN IN To post a reply.
3 Replies
RT
Ramya Thirugnanam
Syncfusion Team
April 17, 2019 06:37 AM UTC
Hi Gordon,
In your sample, you have not set lanes collection, orientation and isLane property inside a shape object, width and height. So that, the swimlane is not rendered in palette. We have modified your code example and provided below.
Code example:
|
const swimLaneShapes: NodeModel[] = [
{
id: 'Horivontal SwimLane', shape: { type: 'SwimLane', lanes: [
{
id: 'lane1',
style: { strokeColor: 'black' }, height: 60, width: 150,
header: { width: 50, height: 50, style: { strokeColor: 'black', fontSize: 11 } },
}
], orientation: 'Horizontal', isLane: true}, width:140, height:60
},
{
id: 'Vertical SwimLane', shape: {type: 'SwimLane', lanes: [
{
id: 'lane1',
style: { strokeColor: 'black' }, height: 60, width: 150,
header: { width: 50, height: 50, style: { strokeColor: 'black', fontSize: 11 } },
}
], orientation: 'Horizontal', isLane: true
}, width:60, height:140
}
]
|
Here is the sample in which we have shown how to add swimlane and phase to the palette.
Please find the help documentation below which shows how to add swimlane to the palette.
Help documentation: https://ej2.syncfusion.com/angular/documentation/diagram/swim-lane/?no-cache=1#add-swimlane-to-palette
Here is the online angular sample
Regards,
Ramya T
GB
Gordon Brown
April 17, 2019 07:43 PM UTC
Ramya:
Working fine now thanks.
Gordon Brown
RT
Ramya Thirugnanam
Syncfusion Team
April 18, 2019 09:42 AM UTC
Hi Gordon,
Thanks for your update.
Regards,
Ramya T
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
GB Gordon Brown
- Apr 16, 2019 09:17 PM UTC
- Apr 18, 2019 09:42 AM UTC