You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I wanted to try the group, nodes and edges example with jsplumb 6, but cannot find working example - only js with array of groups.
with version 2, i was able to show the groups, but not with .addGroup method.
groups.forEach(group => { const groupElement = document.createElement('div'); groupElement.classList.add('jtk-group','rounded'); groupElement.textContent = group.id; groupElement.id = group.id; groupElement.setAttribute("style","position:relative; left:" +group.left + "px ; top: "+group.top+"px"); $flowchart.append(groupElement); //till here is ok, but this is creating DIVs , not group instances. //if i try, i receive : can't assign to property "_isJsPlumbGroup" instance.addGroup({ el:group.id, id:group.id, anchor:"TopLeft", endpoint:[ "Rectangle", { width:10, height:10 } ] }); });
Am i missing something and is there any working example with the latest version - as far as i understood only browser-ui..js have to be added.
thank you
The text was updated successfully, but these errors were encountered:
Hello,
I wanted to try the group, nodes and edges example with jsplumb 6, but cannot find working example - only js with array of groups.
with version 2, i was able to show the groups, but not with .addGroup method.
groups.forEach(group => { const groupElement = document.createElement('div'); groupElement.classList.add('jtk-group','rounded'); groupElement.textContent = group.id; groupElement.id = group.id; groupElement.setAttribute("style","position:relative; left:" +group.left + "px ; top: "+group.top+"px"); $flowchart.append(groupElement); //till here is ok, but this is creating DIVs , not group instances. //if i try, i receive : can't assign to property "_isJsPlumbGroup" instance.addGroup({ el:group.id, id:group.id, anchor:"TopLeft", endpoint:[ "Rectangle", { width:10, height:10 } ] }); });
Am i missing something and is there any working example with the latest version - as far as i understood only browser-ui..js have to be added.
thank you
The text was updated successfully, but these errors were encountered: