Hareeshchandera / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

endpoint image #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Now I can set the endpoint of any jsplumb-element like this :

...
endpoint: ['Image', {src:'images/leftarrow.png'}],
anchors:['RightMiddle', 'LeftMiddle'], 
...

that mean leftarrow.png will show on the left-side and the right-side of the 
connection.

but I would like to connect two element with 2 images for example

on the left-side with "leftarrow.png" and on the right-side with 
"rightarrow.png"

Is it possible?

Original issue reported on code.google.com by yuthasak...@googlemail.com on 24 Jun 2011 at 11:26

Attachments:

GoogleCodeExporter commented 8 years ago
yes, you can do that:

...
endpoints: [ ['Image', {src:'images/leftarrow.png'}], ['Image', 
{src:'images/rightarrow.png'}] ]
anchors:['RightMiddle', 'LeftMiddle'], 
...

Original comment by simon.po...@gmail.com on 24 Jun 2011 at 11:32

GoogleCodeExporter commented 8 years ago
it's work! thank you very much

Original comment by yuthasak...@googlemail.com on 24 Jun 2011 at 12:21

GoogleCodeExporter commented 8 years ago
great!

Original comment by simon.po...@gmail.com on 24 Jun 2011 at 9:47