Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsplumb 2 - can't assign to property "_isJsPlumbGroup" #1052

Open
vvasil3v opened this issue Mar 18, 2024 · 0 comments
Open

jsplumb 2 - can't assign to property "_isJsPlumbGroup" #1052

vvasil3v opened this issue Mar 18, 2024 · 0 comments

Comments

@vvasil3v
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant