Hierarchical Structure

1,096 views
Skip to first unread message

rakhee

unread,
Jun 20, 2012, 7:48:32 AM6/20/12
to jsp...@googlegroups.com
Hi,

Is possible to display a hierarchical structure using jsplumb.

Regards,
Rakhee.

irappa bisanakoppa

unread,
Jun 20, 2012, 9:21:31 AM6/20/12
to jsp...@googlegroups.com
Yes, of course its possible (as per my knowledge). Just place the div's where you want and use anchors property to draw the lines(connectors) between two div's as per your requirement.

--

  Warmest Regards:

 Irappa Bisanakoppa

   Mobile: +91-9880969627

   www.kurios.com.sg



rakhee

unread,
Jun 21, 2012, 1:12:14 AM6/21/12
to jsp...@googlegroups.com



Hi,
Thanks for your reply., I need to display existing hierarchical data from database in my page. Then i need to edit or add new div''s with existing one's.

Simon Porritt

unread,
Jun 21, 2012, 1:52:07 AM6/21/12
to jsp...@googlegroups.com
Placing elements and adding/removing them are not jsPlumb concerns.  jsPlumb will just connect elements together for you, wherever they happen to be, and however they got there.  

rakhee

unread,
Jul 7, 2012, 7:54:13 AM7/7/12
to jsp...@googlegroups.com
Hi simon,

Thanks a lot. One more, Is possible to restrict endpoints and  connection line within a div ? Because, when the div contents overflows the endpoints and  connection line is visible outside the div.

Simon Porritt

unread,
Jul 8, 2012, 12:46:08 AM7/8/12
to jsp...@googlegroups.com
If I understand your question correctly, I think you need to use a combination of the "container" concept in jsPlumb, and some CSS.  See the docs here:


On whichever div you set as the container, you'd just use overflow:hidden to, well, hide the overflow.

rakhee

unread,
Jul 25, 2012, 2:44:38 AM7/25/12
to jsp...@googlegroups.com


Hi Simon,
Well, i have gone through docs. But if i use the container concept m getting the same as i have mentioned earlier.(I am getting all div dynamically and connecting) Please go through the image files i have attached then u can understand my problem clearly.
1st image= if i make overflow: hidden;
2nd image= overflow: auto;
overflow(hidden).png
overflow(auto).png

Simon Porritt

unread,
Jul 25, 2012, 2:53:15 AM7/25/12
to jsp...@googlegroups.com

You might need to send me a link to your page - I can't really debug from screenshots.

Feel free to send it to my email if you'd prefer not to share it with the whole world.

Simon

Message has been deleted
Message has been deleted
Message has been deleted

rakhee

unread,
Jul 27, 2012, 9:09:09 AM7/27/12
to jsp...@googlegroups.com


On Wednesday, July 25, 2012 4:06:31 PM UTC+5:30, rakhee wrote:


Hi, Simon,

Please go through which i have attached.

Rakhee


Hi, Simon,

Did you got my problem?

rakhee

unread,
Jul 30, 2012, 3:28:36 AM7/30/12
to jsp...@googlegroups.com

Simon Porritt

unread,
Jul 30, 2012, 3:42:15 PM7/30/12
to jsp...@googlegroups.com
Thanks.

Your divs have position:relative - this does not work with dragging. You need to make your divs absolutely positioned.  

rakhee

unread,
Jul 31, 2012, 2:36:16 AM7/31/12
to jsp...@googlegroups.com
Thanks.

Hi Simon,

Thanks a lot....its working fine now.

rakhee

Sonal Ghotavadekar

unread,
Apr 21, 2020, 8:16:32 AM4/21/20
to jsPlumb
Hi Rakhee,

Came across your post today :) What you did long back, I am trying to achieve similar thing
I am facing two issues, my endpoints dont get alligned with the node (actually columns in the table node)
There are 3 columns in each table and I want endpoints for each columns so that i can connect one column from first table to another column on second table.
But when I inspect the elements I see all the 6 endpoints in the <div> for first node (table)

I have attached the screenshot of how UI looks

Thanks
Sonal
node.component.ts
misaligned_endpoints_with_nodes.png
Reply all
Reply to author
Forward
0 new messages