Looking for a Family Tree [closed]

淺唱寂寞╮ 提交于 2019-12-04 10:08:06

问题


I am creating Family Tree feature for my web app with HTML5 requirements. I already searched and found some JS samples, but I haven't find any that fit with my requirements. I already tried JIT, Rafael, GoJS, etc.

I found this to be the closest one is from GoJS:

GoJS fam-tree option #1

But this not enough. I need to connect one member with another member with drag and drop function.

Is there some JS that may fit with the requirements or at least operate like GoJS? Since I need to pay a license for GoJS AND THEN customize it, the budget is tight. Thank you very much.


回答1:


The functionality you're looking for is built in to GoJS. For instance have a look at the
Org Chart Editor Sample.

You can double click on nodes in order to add a new person, drag a node onto another in order to change relationships, and draw links (with a click drag operation) from a node's background to other nodes that have no "boss".

(If you want a node to have no Boss in this simple sample, you can select and delete links)




回答2:


I already found it. I use jsPlumb for this Family Tree with some modification. Thanks for you all.



来源:https://stackoverflow.com/questions/15944146/looking-for-a-family-tree

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!