View Full Version : Drawing an association between 2 ele's in a canvas

9 Mar 2012, 8:49 AM
Hello All,

I need to draw an association( line ) b/w two elements in a canvas where my canvas consist drag & drop buttons.
Is this do able ? Please let me know how can it be ?

Thank you for the Great help.

9 Mar 2012, 12:00 PM
You can use Ext.draw to draw a line from one to the other. You will need to handle changing it when something is dragged around and stuff.

12 Mar 2012, 3:33 AM
I have (fromX, fromY) co-ordinates of element-1 and (toX,toY ) co-ordinates of element-2. Now, can I have a function that draws a Line between these two elements ?

Thank you..