Hi,
I am new to this awesome library. I am creating my first flowchart diagram with some overlay labels on it. Now I want to animate properties of the labels but, it seams that, the Ids I gave to labels just get removed and replaced as jsPlumb_1_1..2..3... so on. Below is my code and the generated HTML code. I am using Google chrome's developer tool to view the HTML.
================== JS Code =================
jsPlumb.connect({
source:"StartCircle",
endpoints: [ [ "Dot", {radius:20,stroke:"black"} ]],
connector:"Straight",
target:"NextNode",
endpoint:"Blank",
anchor:["TopCenter"],
paintStyle:{
lineWidth:2,
strokeStyle:"black",
},
overlays:[
[ "Label",
{
label:"Next Node",
cssClass:"arrowTitle",
id:"NextNodeLabel"
}
]
]
});
============= HTML Generated Code =============
<div id="StartCircle" style="position: absolute; left: 315px; top: 27px; width: 200px;"></div>
<div id="
NextNode " class="nodeTitle" style="position: absolute; left: 315px; top: 123px; width: 186px">
NOT STARTED</div>
<div style="position: absolute; left: 364.5px; top: 60.999999999999986px; " class="_jsPlumb_overlay arrowTitle" id="jsPlumb_1_1">Order Received</div>
============================================
If you see closely, you can see that the class I am specifying into the label is there but not an id. Can anybody suggest me what am I doing wrong ? or is it like this way.
Another interesting thing is when I add event to the overlay and try to display the id then it shows correct id but there's nothing in HTML. I am stuck please help.
thanks.