We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Programatically adding swimlanes

Thread ID:

Created:

Updated:

Platform:

Replies:

127562 Nov 23,2016 06:07 AM Nov 24,2016 04:54 AM JavaScript 1
loading
Tags: ejDiagram
Gabriel Axel
Asked On November 23, 2016 06:07 AM

Greetings,

I am trying to programatically add swimlanes to the diagram. When I try to add a lane like so:

diagram.add({ header: { width: 50, height: 50, fillColor: '#C7D4DF', fontSize: 11 }, height: 60, width: 140, fillColor: '#f5f5f5', offsetX: 70, offsetY: 30, orientation: 'horizontal', isLane: true })

there is an error in the console and nothing is added. When I try to add a phase like so:

diagram.add({ type: 'phase', lineWidth: 1, lineDashArray: '3,3', lineColor: '#A9A9A9', parent: '', orientation: 'vertical', label: { text: '' } })

the browser becomes unresponsive. I am using "add" and not "addPhase" because this is for free drawing by the user.

Am I doing something wrong or are these bugs?

Thanks.

Shyam G [Syncfusion]
Replied On November 24, 2016 04:54 AM

Hi Gabriel, 

We have created a sample in which we have shown how to add the swimlane,lane and phase at runtime. 


Regards, 
Shyam G 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;