Here is the sample code which i am using it.
function onLoadDesignMode()
{
jsPlumb.bind('ready', function () {
jsPlumb.Defaults.Container = $("#Page");
var exampleGreyEndpointOptions = {
endpoint:"Dot",
paintStyle:{ width:25, height:21, fillStyle:'#00ff00' },
isSource:true,
connectorStyle : { strokeStyle:"#ff00ff" },
isTarget:true
};
Could you please help me out. I am in little trouble.
I am trying to establish connection between two HTML elements (DIV tag) using Drag and drop connection feature of jsPlumb. I am able to establish connection using Programmatic Connection but Not by using Drag & Drop connection feature.
Here is the sample code which i am using it.
function onLoadDesignMode()
{
jsPlumb.bind('ready', function () {
jsPlumb.Defaults.Container = $("#Page");
var exampleGreyEndpointOptions = {
endpoint:"Dot",
paintStyle:{ width:25, height:21, fillStyle:'#00ff00' },
isSource:true,
connectorStyle : { strokeStyle:"#ff00ff" },
isTarget:true
};
jsPlumb.addEndpoint('rect001', {anchor:"BottomCenter" }, exampleGreyEndpointOptions);
jsPlumb.addEndpoint('rect002', {anchor:"TopCenter" }, exampleGreyEndpointOptions);
});
}
By using above code, I am only able to establish End Points but not able to establish connection using Drag & Drop connection feature.
Note: I am using following version of jsPlumb: jquery.jsPlumb-1.5.5.js
I would really appriciate your helping hand.
Thnaks and Regards,
Milind